OpenTokValue class

The connection state, audio enabled & video enabled settings of a OpenTokController

Annotations

Constructors

OpenTokValue.new({ConnectionState state = open_tok.ConnectionState.loggedOut, bool audioEnabled = true, bool videoEnabled = true, String? errorDescription})
Constructs a OpenTokValue with the given values.
const

Properties

audioEnabled bool
Whether publisher audio (microphone) is enabled or not.
final
errorDescription String?
An optional error description. This will be non-null if the open_tok.ConnectionState is open_tok.ConnectionState.error.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ConnectionState
Current connection state of the session. Default to open_tok.ConnectionState.loggedOut.
final
videoEnabled bool
Whether publisher video is enabled or not.
final

Methods

copyWith({ConnectionState? state, bool? audioEnabled, bool? videoEnabled, String? errorDescription}) OpenTokValue
Returns a new instance that has the same values as this current instance, except for any overrides passed in as arguments to copyWith.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited