Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rtm.PublishOptions Class Reference

Public Member Functions

 PublishOptions ()
 
 PublishOptions (RtmChannelType channelType, String customType)
 
void setCustomType (String customType)
 
void setChannelType (RtmChannelType channelType)
 
String getCustomType ()
 
long getChannelType ()
 
String toString ()
 

Detailed Description

Publish message option

Constructor & Destructor Documentation

◆ PublishOptions() [1/2]

io.agora.rtm.PublishOptions.PublishOptions ( )

Creates a new instance of

with default parameters.

◆ PublishOptions() [2/2]

io.agora.rtm.PublishOptions.PublishOptions ( RtmChannelType  channelType,
String  customType 
)

Creates a new instance of

with specified channelType and customType.

Parameters
channelTypeThe type of channel
customTypeThe custom type of the message
io.agora.rtm.PublishOptions.PublishOptions
PublishOptions()
Definition: PublishOptions.java:24