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 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.NotConnectedException
      InterruptedException
    • 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.NotConnectedException
      InterruptedException
    • inviteToMuc

      public void inviteToMuc(org.jxmpp.jid.EntityBareJid jid, GroupChatInvitation invitation) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • 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.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • addInvitationListener

      public void addInvitationListener(DirectMucInvitationListener listener)
    • removeInvitationListener

      public void removeInvitationListener(DirectMucInvitationListener listener)