Chat Android SDK
7.0.1
|
Helper to create new channel with provided data. More...
Public Member Functions | |
ChannelBuilder | withFriendlyName (String friendlyName) |
Set channel friendly name. More... | |
ChannelBuilder | withUniqueName (String uniqueName) |
Set channel unique name. More... | |
ChannelBuilder | withType (@NonNull ChannelType type) |
Set channel type - PUBLIC or PRIVATE. More... | |
ChannelBuilder | withAttributes (Attributes attributes) |
Set user-specified custom channel attributes. More... | |
void | build (CallbackListener< Channel > listener) |
Method to create channel with options. More... | |
Helper to create new channel with provided data.
void com.twilio.chat.Channels.ChannelBuilder.build | ( | CallbackListener< Channel > | listener | ) |
Method to create channel with options.
Set options using withFriendlyName, withUniqueName, withType and withAttributes before calling this function.
listener | Listener that receives the status of create channel action. |
ChannelBuilder com.twilio.chat.Channels.ChannelBuilder.withAttributes | ( | Attributes | attributes | ) |
Set user-specified custom channel attributes.
attributes | Attributes object with custom channel attributes. |
ChannelBuilder com.twilio.chat.Channels.ChannelBuilder.withFriendlyName | ( | String | friendlyName | ) |
Set channel friendly name.
friendlyName | Friendly name for channel to create. |
ChannelBuilder com.twilio.chat.Channels.ChannelBuilder.withType | ( | @NonNull ChannelType | type | ) |
Set channel type - PUBLIC or PRIVATE.
type | New channel type. |
ChannelBuilder com.twilio.chat.Channels.ChannelBuilder.withUniqueName | ( | String | uniqueName | ) |
Set channel unique name.
uniqueName | User-specified unique name for channel. |