Package org.jivesoftware.smackx.muc
Class DirectMucInvitationManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.muc.DirectMucInvitationManager
public final class DirectMucInvitationManager
extends org.jivesoftware.smack.Manager
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 TypeMethodDescriptionvoidstatic DirectMucInvitationManagergetInstanceFor(org.jivesoftware.smack.XMPPConnection connection) voidinviteToMuc(MultiUserChat muc, org.jxmpp.jid.EntityBareJid user) voidinviteToMuc(MultiUserChat muc, org.jxmpp.jid.EntityBareJid user, String password, String reason, boolean continueAsOneToOneChat, String thread) voidinviteToMuc(org.jxmpp.jid.EntityBareJid jid, GroupChatInvitation invitation) voidbooleanuserSupportsInvitations(org.jxmpp.jid.EntityBareJid jid) Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Method Details
-
getInstanceFor
public static DirectMucInvitationManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) -
inviteToMuc
public void inviteToMuc(MultiUserChat muc, org.jxmpp.jid.EntityBareJid user) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
inviteToMuc
public void inviteToMuc(MultiUserChat muc, org.jxmpp.jid.EntityBareJid user, String password, String reason, boolean continueAsOneToOneChat, String thread) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
inviteToMuc
public void inviteToMuc(org.jxmpp.jid.EntityBareJid jid, GroupChatInvitation invitation) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
userSupportsInvitations
public boolean userSupportsInvitations(org.jxmpp.jid.EntityBareJid jid) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException - Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
addInvitationListener
-
removeInvitationListener
-