VoiceAgentStreamAdapter class
Streams VoiceEvents from a C++ voice agent handle.
Multiple concurrent stream subscribers for the same native handle share one C callback registration and receive the same decoded events.
Constructors
-
VoiceAgentStreamAdapter(Pointer<
Void> _handle)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream(
) → Stream< VoiceEvent> -
Open a new event subscription. The returned stream emits one
VoiceEvent per agent event until cancelled or the agent ends.
Each call produces a fresh single-subscription stream; multiple
streams attached to the same native handle fan out from one C
callback registration via
_VoiceFanOutRegistry. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited