Package io.agora.rtm
Class JoinTopicOptions
java.lang.Object
io.agora.rtm.JoinTopicOptions
Join topic options.
-
Constructor Summary
ConstructorsConstructorDescriptionThe default Constructor ofJoinTopicOptions.Constructs a newJoinTopicOptionsobject with message qos and priority.JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia) Constructs a newJoinTopicOptionsobject with the specified parameters.JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia, String topicMeta) Create a newJoinTopicOptionsobject with the specified parameters -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanvoidsetMessageQos(RtmConstants.RtmMessageQos messageQos) voidsetPriority(RtmConstants.RtmMessagePriority priority) voidsetSyncWithMedia(boolean syncWithMedia) voidsetTopicMeta(String topicMeta) toString()
-
Constructor Details
-
JoinTopicOptions
public JoinTopicOptions()The default Constructor ofJoinTopicOptions. -
JoinTopicOptions
Constructs a newJoinTopicOptionsobject with message qos and priority.- Parameters:
qos- The quality of service for messages sent on the topicpriority- The priority of the topic message
-
JoinTopicOptions
public JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia) Constructs a newJoinTopicOptionsobject with the specified parameters.- Parameters:
qos- The quality of service for messages sent on the topicpriority- The priority of the topic messagesyncWithMedia- Indicates whether to synchronize with media
-
JoinTopicOptions
public JoinTopicOptions(RtmConstants.RtmMessageQos qos, RtmConstants.RtmMessagePriority priority, boolean syncWithMedia, String topicMeta) Create a newJoinTopicOptionsobject with the specified parameters- Parameters:
qos- The quality of service for messages sent on the topicpriority- The priority of the topic messagesyncWithMedia- Indicates whether to synchronize with mediatopicMeta- The metaData of current topic
-
-
Method Details
-
setMessageQos
-
setPriority
-
setSyncWithMedia
public void setSyncWithMedia(boolean syncWithMedia) -
setTopicMeta
-
getMessageQos
public int getMessageQos() -
getMessagePriority
public int getMessagePriority() -
getSyncWithMedia
public boolean getSyncWithMedia() -
getTopicMeta
-
toString
-