public static class Channels.ChannelBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
build(CallbackListener<Channel> listener)
Method to create channel with options.
|
Channels.ChannelBuilder |
withAttributes(org.json.JSONObject attributes)
Set user-specified custom channel attributes.
|
Channels.ChannelBuilder |
withFriendlyName(java.lang.String friendlyName)
Set channel friendly name.
|
Channels.ChannelBuilder |
withType(Channel.ChannelType type)
Set channel type - PUBLIC or PRIVATE.
|
Channels.ChannelBuilder |
withUniqueName(java.lang.String uniqueName)
Set channel unique name.
|
public Channels.ChannelBuilder withFriendlyName(java.lang.String friendlyName)
friendlyName
- Friendly name for channel to create.public Channels.ChannelBuilder withUniqueName(java.lang.String uniqueName)
uniqueName
- User-specified unique name for channel.public Channels.ChannelBuilder withType(@NonNull Channel.ChannelType type)
type
- New channel type.public Channels.ChannelBuilder withAttributes(org.json.JSONObject attributes)
attributes
- JSON object with custom channel attributes.public void build(CallbackListener<Channel> listener)
listener
- Listener that receives the status of create channel action.