Package com.opentok
Enum Class Role
- All Implemented Interfaces:
Serializable
,Comparable<Role>
,Constable
Defines values for the role parameter of the
TokenOptions.Builder.role(Role role)
method.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn addition to the privileges granted to a publisher, a moderator can perform moderation functions, such as forcing clients to disconnect, to stop publishing streams, or to mute audio in published streams.A publisher can publish streams, subscribe to streams, and signal.Publish only privilege.A subscriber can only subscribe to streams. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
SUBSCRIBER
A subscriber can only subscribe to streams. -
PUBLISHER
A publisher can publish streams, subscribe to streams, and signal. (This is the default value if you do not set a role by calling theTokenOptions.Builder.role(Role role)
method. -
MODERATOR
In addition to the privileges granted to a publisher, a moderator can perform moderation functions, such as forcing clients to disconnect, to stop publishing streams, or to mute audio in published streams. See the Moderation developer guide. -
PUBLISHER_ONLY
Publish only privilege.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-