Package org.jivesoftware.smackx.muc
Class DirectMucInvitationManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.muc.DirectMucInvitationManager
Smacks API for XEP-0249: Direct MUC Invitations.
Use this instead of
MUCUser.Invite
.
To invite a user to a group chat, use inviteToMuc(MultiUserChat, EntityBareJid)
.
In order to listen for incoming invitations, register a DirectMucInvitationListener
using
addInvitationListener(DirectMucInvitationListener)
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static DirectMucInvitationManager
getInstanceFor
(XMPPConnection connection) void
inviteToMuc
(MultiUserChat muc, EntityBareJid user) void
inviteToMuc
(MultiUserChat muc, EntityBareJid user, String password, String reason, boolean continueAsOneToOneChat, String thread) void
inviteToMuc
(EntityBareJid jid, GroupChatInvitation invitation) void
boolean
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Method Details
-
getInstanceFor
-
inviteToMuc
public void inviteToMuc(MultiUserChat muc, EntityBareJid user) throws SmackException.NotConnectedException, InterruptedException -
inviteToMuc
public void inviteToMuc(MultiUserChat muc, EntityBareJid user, String password, String reason, boolean continueAsOneToOneChat, String thread) throws SmackException.NotConnectedException, InterruptedException -
inviteToMuc
public void inviteToMuc(EntityBareJid jid, GroupChatInvitation invitation) throws SmackException.NotConnectedException, InterruptedException -
userSupportsInvitations
-
addInvitationListener
-
removeInvitationListener
-