Package io.agora.rtm

Class JoinTopicOptions

java.lang.Object
io.agora.rtm.JoinTopicOptions

public class JoinTopicOptions extends Object
Join topic options.
  • Constructor Details

    • JoinTopicOptions

      public JoinTopicOptions()
      The default Constructor of JoinTopicOptions.
    • JoinTopicOptions

      public JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority)
      Constructs a new JoinTopicOptions object with message qos and priority.
      Parameters:
      qos - The quality of service for messages sent on the topic
      priority - The priority of the topic message
    • JoinTopicOptions

      public JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia)
      Constructs a new JoinTopicOptions object with the specified parameters.
      Parameters:
      qos - The quality of service for messages sent on the topic
      priority - The priority of the topic message
      syncWithMedia - Indicates whether to synchronize with media
    • JoinTopicOptions

      public JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia, String topicMeta)
      Create a new JoinTopicOptions object with the specified parameters
      Parameters:
      qos - The quality of service for messages sent on the topic
      priority - The priority of the topic message
      syncWithMedia - Indicates whether to synchronize with media
      topicMeta - The metaData of current topic
  • Method Details

    • setMessageQos

      public void setMessageQos(RtmConstants.RtmMessageQos messageQos)
    • setPriority

      public void setPriority(RtmConstants.RtmMessagePriority priority)
    • setSyncWithMedia

      public void setSyncWithMedia(boolean syncWithMedia)
    • setTopicMeta

      public void setTopicMeta(String topicMeta)
    • getMessageQos

      public int getMessageQos()
    • getMessagePriority

      public int getMessagePriority()
    • getSyncWithMedia

      public boolean getSyncWithMedia()
    • getTopicMeta

      public String getTopicMeta()
    • toString

      public String toString()
      Overrides:
      toString in class Object