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, boolean storeInHistory)
 
void setCustomType (String customType)
 
void setChannelType (RtmChannelType channelType)
 
void setStoreInHistory (boolean storeInHistory)
 
String getCustomType ()
 
long getChannelType ()
 
boolean getStoreInHistory ()
 
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,
boolean  storeInHistory 
)

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:29