SpeechBindings class

The platform APIs the apple_speech library talks to.

Replace instance in tests to run the Dart layer against fakes.

Constructors

SpeechBindings({AppleSpeechHostApi? host, AppleSpeechPlatformApi? platform, bool registerCallbacks = true})
Creates bindings, defaulting to the real platform channels.

Properties

activeRequests → List<RequestSink>
Snapshot of currently routed requests.
no setter
callbackHandler → AppleSpeechCallbackApi
Receives native events and routes them by request id.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
host → AppleSpeechHostApi
The Speech API.
final
platform → AppleSpeechPlatformApi
The always-available platform API.
final
routedRequestCount → int
How many requests are routed on the Dart side.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextRequestId() → int
Reserves an id for a new request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerRequest(int requestId, RequestSink sink) → void
Routes events for requestId to sink.
toString() → String
A string representation of this object.
inherited
unregisterRequest(int requestId) → void
Stops routing events for requestId.

Operators

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

Static Properties

instance ↔ SpeechBindings
The bindings every API uses.
getter/setter pair