Package io.agora.rtm

Class PublishOptions

java.lang.Object
io.agora.rtm.PublishOptions

public class PublishOptions extends Object
Publish message option
  • Constructor Details

    • PublishOptions

      public PublishOptions()
      Creates a new instance of PublishOptions with default parameters.
    • PublishOptions

      public PublishOptions(RtmConstants.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
  • Method Details

    • setCustomType

      public void setCustomType(String customType)
    • setChannelType

      public void setChannelType(RtmConstants.RtmChannelType channelType)
    • setStoreInHistory

      public void setStoreInHistory(boolean storeInHistory)
    • getCustomType

      public String getCustomType()
    • getChannelType

      public long getChannelType()
    • getStoreInHistory

      public boolean getStoreInHistory()
    • toString

      public String toString()
      Overrides:
      toString in class Object