Package io.agora.rtm
Class JoinChannelOptions
java.lang.Object
io.agora.rtm.JoinChannelOptions
Join channel options.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofJoinChannelOptionswith default options.JoinChannelOptions(String token, boolean withPresence, boolean withMetadata, boolean withLock, boolean beQuiet) Creates a new instance ofJoinChannelOptionswith specifies options. -
Method Summary
Modifier and TypeMethodDescriptiongetToken()booleanbooleanbooleanbooleanvoidsetBeQuiet(boolean beQuiet) voidvoidsetWithLock(boolean withLock) voidsetWithMetadata(boolean withMetadata) voidsetWithPresence(boolean withPresence) toString()
-
Constructor Details
-
JoinChannelOptions
public JoinChannelOptions()Creates a new instance ofJoinChannelOptionswith default options. -
JoinChannelOptions
public JoinChannelOptions(String token, boolean withPresence, boolean withMetadata, boolean withLock, boolean beQuiet) Creates a new instance ofJoinChannelOptionswith specifies options.- Parameters:
token- The token used for authenticationwithPresence- Indicates whether subscribe presence event notifywithMetadata- Indicates whether subscribe storage event notifywithLock- Indicates whether subscribe lock event notifybeQuiet- Indicates whether join channel in quiet mode
-
-
Method Details
-
setToken
-
setWithPresence
public void setWithPresence(boolean withPresence) -
setWithMetadata
public void setWithMetadata(boolean withMetadata) -
setWithLock
public void setWithLock(boolean withLock) -
setBeQuiet
public void setBeQuiet(boolean beQuiet) -
getToken
-
getWithMetadata
public boolean getWithMetadata() -
getWithPresence
public boolean getWithPresence() -
getWithLock
public boolean getWithLock() -
isBeQuiet
public boolean isBeQuiet() -
toString
-