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