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

PublishOptions

with default parameters.

## ◆ PublishOptions() [2/2]

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

Creates a new instance of

PublishOptions

with specified channelType and customType.

Parameters

  channelType | The type of channel
  customType | The custom type of the message

io.agora.rtm.PublishOptions.PublishOptions
PublishOptions()
Definition: PublishOptions.java:29