public interface Channels
Modifier and Type | Method and Description |
---|---|
void |
createChannel(java.lang.String friendlyName,
Channel.ChannelType type,
Constants.CreateChannelListener listener)
Method to create channel with attributes.
|
Channel |
getChannel(java.lang.String channelId)
Retrieves a channel with the specified id.
|
Channel |
getChannelByUniqueName(java.lang.String uniqueName)
Retrieves a channel with the unique name.
|
Channel[] |
getChannels()
Request a list of all channels loaded so far.
|
void |
loadChannelsWithListener(Constants.StatusListener listener)
Request loading of all channels from server to be delivered via callbacks.
|
void createChannel(java.lang.String friendlyName, Channel.ChannelType type, Constants.CreateChannelListener listener)
friendlyName
- Friendly name of the new channel.channelType
- Channel typelistener
- Listener that receives the status of create channel action.void loadChannelsWithListener(Constants.StatusListener listener)
listener
- Listener that will receive callback of the result.Channel getChannel(java.lang.String channelId)
channelId
- Identifier for the channel.Channel getChannelByUniqueName(java.lang.String uniqueName)
uniqueName
- Unique name for the channel.Channel[] getChannels()