xmpp聊天室配置

 // 设置聊天室的新拥有者
   List<String> owners = new ArrayList<String>();
   owners.add(AppParameters.userId + "\\40slook.cc");
   owners.add("6_1276_22\\40slook.cc");
   submitForm.setAnswer("muc#roomconfig_roomowners", owners);

   // 设置聊天室是持久聊天室,即将要被保存下来
   submitForm.setAnswer("muc#roomconfig_persistentroom", true);
   // 房间仅对成员开放
   submitForm.setAnswer("muc#roomconfig_membersonly", false);
   // 允许占有者邀请其他人
   submitForm.setAnswer("muc#roomconfig_allowinvites", true);
   // 能够发现占有者真实 JID 的角色
   submitForm.setAnswer("muc#roomconfig_whois", "anyone");
   // 登录房间对话
   submitForm.setAnswer("muc#roomconfig_enablelogging", true);
   // 仅允许注册的昵称登录
   submitForm.setAnswer("x-muc#roomconfig_reservednick", true);
   // 允许使用者修改昵称
   submitForm.setAnswer("x-muc#roomconfig_canchangenick", false);
   // 允许用户注册房间
   submitForm.setAnswer("x-muc#roomconfig_registration", false);
   // 设置描述
   submitForm.setAnswer("muc#roomconfig_roomdesc", roomDescription);

你可能感兴趣的:(android,XMPP,聊天室)