MediaIntelligenceBindings class
The platform APIs the media_intelligence library talks to.
Replace instance in tests to run the Dart layer against fakes.
Constructors
- MediaIntelligenceBindings({MediaIntelligenceHostApi? host, MediaIntelligencePlatformApi? platform, bool registerCallbacks = true})
- Creates bindings, defaulting to the real platform channels.
Properties
- activeRequestCount → int
-
How many streaming requests are routed, for leak checks.
no setter
- callbackHandler → MediaIntelligenceCallbackApi
-
Receives native callbacks. Tests can call it to simulate the platform.
latefinal
-
finalizer
→ Finalizer<
int> -
Releases native handles whose Dart owners were garbage collected.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → MediaIntelligenceHostApi
-
The MediaIntelligence API (registered only on iOS 27 / macOS 27).
final
- platform → MediaIntelligencePlatformApi
-
The always-available platform API.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
nextRequestId(
) → int - Reserves an id for a streaming request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerRequest(
int requestId, FaceRequestSink sink) → void -
Routes events for
requestIdtosink. -
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 ↔ MediaIntelligenceBindings
-
The bindings every object uses.
getter/setter pair