AppleVisionHostApi class

Registered only when Vision is available.

Constructors

AppleVisionHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for AppleVisionHostApi. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode → int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger → BinaryMessenger?
final
pigeonVar_messageChannelSuffix → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeMaskAsPng(MaskImageMessage mask) → Future<Uint8List>
Encodes a mask or heat map as a PNG.
featurePrintDistance(String tokenA, String tokenB) → Future<double>
Vision's own distance between two feature prints, by their tokens.
imageSize(ImageInputMessage image, ImageOrientationMessage? orientation) → Future<ImageSizeMessage>
The pixel size of image after applying orientation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
perform(ImageInputMessage image, ImageOrientationMessage? orientation, List<RequestMessage> requests) → Future<AnalysisMessage>
Decodes image once and runs every request on it, in order.
supportedBarcodeSymbologies() → Future<List<BarcodeSymbologyMessage>>
The barcode symbologies this device can detect.
supportedClassificationIdentifiers() → Future<List<String>>
Every identifier ClassifyImageRequest can return.
supportedRecognitionLanguages(RecognitionLevelMessage level) → Future<List<String>>
BCP-47 identifiers of the languages text recognition supports.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

pigeonChannelCodec → const MessageCodec<Object?>