SessionOptions class
Options for creating a Session.
Constructors
- SessionOptions({Room? room, bool preConnectAudio = true, Duration agentConnectTimeout = const Duration(seconds: 20)})
Properties
- agentConnectTimeout → Duration
-
The timeout for the agent to connect. If exceeded, the agent transitions
to a failed state.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- preConnectAudio → bool
-
Whether to enable audio pre-connect with PreConnectAudioBuffer.
final
- room → Room
-
The underlying Room used by the session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Room? room, bool? preConnectAudio, Duration? agentConnectTimeout}) → SessionOptions -
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