public interface Channel
Modifier and Type | Interface and Description |
---|---|
static class |
Channel.ChannelStatus
The Channel.ChannelStatus enum represents the various states of the member with respect to this channel
|
static class |
Channel.ChannelType
Enumeration indicating the channel's visibility.
|
Modifier and Type | Method and Description |
---|---|
void |
declineInvitation(Constants.StatusListener listener)
Declines an invite on this channel.
|
void |
destroy(Constants.StatusListener listener)
Destroys the current channel.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Custom attributes associated with the Channel.
|
java.lang.String |
getFriendlyName()
Method that returns the friendlyName of the channel.
|
ChannelListener |
getListener()
Method to retrieve ChannelListener for this Channel.
|
Members |
getMembers()
Method to get the channel members.
|
Messages |
getMessages()
Method to get messages.
|
java.lang.String |
getSid()
Method that returns the unique identifier for this channel.
|
Channel.ChannelStatus |
getStatus()
Returns the current user's status on this channel.
|
Channel.ChannelType |
getType()
Method to get the channel type.
|
java.lang.String |
getUniqueName()
Method that returns the unique Name of the channel.
|
void |
join(Constants.StatusListener listener)
Joins the current user to the channel.
|
void |
leave(Constants.StatusListener listener)
Leaves the current channel.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> updatedAttributes,
Constants.StatusListener listener)
Updates the attribute data for this channel.
|
void |
setFriendlyName(java.lang.String friendlyName,
Constants.StatusListener listener)
Updates the friendly name for this channel.
|
void |
setListener(ChannelListener listener)
Method to set ChannelListener for this Channel.
|
void |
setUniqueName(java.lang.String uniqueName,
Constants.StatusListener listener)
Updates the unique name for this channel.
|
void |
typing()
Called when Member starts typing on this channel.
|
java.lang.String getSid()
java.lang.String getFriendlyName()
void setFriendlyName(java.lang.String friendlyName, Constants.StatusListener listener)
friendlyName
- updated friendly name.java.util.Map<java.lang.String,java.lang.String> getAttributes()
void setAttributes(java.util.Map<java.lang.String,java.lang.String> updatedAttributes, Constants.StatusListener listener)
updatedAttributes
- Messages getMessages()
Channel.ChannelStatus getStatus()
ChannelListener getListener()
void setListener(ChannelListener listener)
listener
- A channel listener.Members getMembers()
Channel.ChannelType getType()
java.lang.String getUniqueName()
void setUniqueName(java.lang.String uniqueName, Constants.StatusListener listener)
uniqueName
- The new unique name for this channel.listener
- Listener that will receive callback with the result.void join(Constants.StatusListener listener)
listener
- listener
- Listener that will receive callback with the result.void leave(Constants.StatusListener listener)
listener
- Listener that will receive callback with the result.void destroy(Constants.StatusListener listener)
listener
- Listener that will receive callback with the result.void declineInvitation(Constants.StatusListener listener)
listener
- StatusListener to report status of the async operation via callback.listener
- Listener that will receive callback with the result.void typing()