flutter_capture_vision_platform_interface 0.1.0
flutter_capture_vision_platform_interface: ^0.1.0 copied to clipboard
Common platform interface, typed contracts, and versioned channel protocol for the flutter_capture_vision federated plugin.
flutter_capture_vision_platform_interface #
Common platform interface, value types, and versioned channel contract for the flutter_capture_vision federated plugin.
End users should depend on flutter_capture_vision instead of this package. This package exists for platform implementers and for the pure Dart contracts:
- Value types:
VisionTask,VisionImageBuffer,VisionPixelFormat,VisionRotation,VisionPoint,VisionQuadrilateral. - Requests:
CaptureVisionRequest.forTasks/CaptureVisionRequest.namedTemplate(mutually exclusive). - Results:
CaptureVisionResult,BarcodeResult,MrzResult,DocumentDetectionResult— always typed lists, nevernull. - Templates:
CaptureVisionTemplate.parseAll(settingsJson)extractsCaptureVisionTemplates[].Namewith order and case preserved, rejecting missing, blank, non-string, or duplicate names. - Errors:
CaptureVisionException(code, message, cause). - Platform contract:
CaptureVisionPlatform(all operations areFuture-based) and the referenceMethodChannelCaptureVisionused by the native implementations.
See example/ for a runnable tour of the contracts without any native SDK.