testing library

Test support for code that uses media_intelligence.

Replace MediaIntelligenceBindings.instance with bindings backed by fake host APIs to exercise the Dart layer without a device.

Classes

AssetGroupMessage
Asset ids grouped under an entity id.
AssetMessage
Mirrors MediaIntelligenceImageAsset / MediaIntelligenceVideoAsset with a file URL.
FaceGroupMessage
Faces grouped under one key: an asset id or an entity id.
FaceMessage
Mirrors FaceGroupAnalyzer.Face.
FaceRequestSink
Receives the events of one streaming face request.
HighlightLevelMessage
Mirrors HighlightAnalysisRequest.Result.levels.
MediaIntelligenceBindings
The platform APIs the media_intelligence library talks to.
MediaIntelligenceCallbackApi
Native → Dart events for streaming face requests.
MediaIntelligenceHostApi
Registered only on iOS 27 / macOS 27 and later.
MediaIntelligencePlatformApi
Always available, so Dart can ask whether the framework exists.
RequestErrorMessage
A failure of one video request, while others may succeed.
TimeRangeMessage
A time range in seconds.
VideoAnalysisMessage
The results of VideoAnalyzer.analyze. A requested analysis has either its result fields or its error set.

Enums

FaceGroupStateMessage
Mirrors FaceGroupAnalyzer.State.

Functions

wrapResponse({Object? result, PlatformException? error, bool empty = false}) → List<Object?>