AppleVisionBindings class

The platform APIs the apple_vision_native library talks to.

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

AppleVisionBindings.instance = AppleVisionBindings(host: FakeHost());

Constructors

AppleVisionBindings({AppleVisionHostApi? host, AppleVisionPlatformApi? platform})
Creates bindings, defaulting to the real platform channels.

Properties

hashCode → int
The hash code for this object.
no setterinherited
host → AppleVisionHostApi
The Vision API (registered only when Vision is available).
final
platform → AppleVisionPlatformApi
The always-available platform API.
final
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ AppleVisionBindings
The bindings used by every apple_vision_native call.
getter/setter pair