public final class MultiUserChatManager extends Manager
Manages Multi-User Chat.
Modifier and Type | Method and Description |
---|---|
void |
addInvitationListener(java.util.function.Consumer<InvitationEvent> invitationListener)
Adds an invitation listener, which allows to listen for inbound multi-user chat invitations.
|
ChatRoom |
createChatRoom(Jid roomAddress)
Creates a chat room for the specified room address.
|
ChatService |
createChatService(Jid chatService)
Creates a chat service for the specified service address.
|
AsyncResult<java.util.List<ChatService>> |
discoverChatServices()
Discovers the multi-user chat services hosted at the connected domain.
|
AsyncResult<java.util.List<Item>> |
discoverEnteredRooms(Jid contact)
Discovers the rooms, where a contact is in.
|
void |
removeInvitationListener(java.util.function.Consumer<InvitationEvent> invitationListener)
Removes a previously added invitation listener.
|
isEnabled, setEnabled
public void addInvitationListener(java.util.function.Consumer<InvitationEvent> invitationListener)
Adds an invitation listener, which allows to listen for inbound multi-user chat invitations.
invitationListener
- The listener.removeInvitationListener(Consumer)
public void removeInvitationListener(java.util.function.Consumer<InvitationEvent> invitationListener)
Removes a previously added invitation listener.
invitationListener
- The listener.addInvitationListener(Consumer)
public AsyncResult<java.util.List<ChatService>> discoverChatServices()
Discovers the multi-user chat services hosted at the connected domain.
public AsyncResult<java.util.List<Item>> discoverEnteredRooms(Jid contact)
Discovers the rooms, where a contact is in.
contact
- The contact, which must be a full JID.Item.getJid()
has the room address, and Item.getName()
} has the nickname.public ChatService createChatService(Jid chatService)
Creates a chat service for the specified service address.
chatService
- The chat service address. Usually this is hosted at the subdomain “conference”.Copyright © 2014–2019 XMPP.rocks. All rights reserved.