testing library

Injectable bindings and wire types for tests using hand-written fake hosts.

Classes

AnalysisSink
Receives callbacks for one analysis; exposed for fake hosts in tests.
AppleSoundAnalysisCallbackApi
Native → Dart events, routed by request id.
AppleSoundAnalysisHostApi
Registered only when SoundAnalysis is available.
AppleSoundAnalysisPlatformApi
Always available, so Dart can ask whether the framework exists.
AudioFormatMessage
PCM audio pushed from Dart: interleaved 32-bit float samples.
ClassificationMessage
Mirrors SNClassification.
ClassificationResultMessage
Mirrors SNClassificationResult.
ClassifierConfigMessage
Which classifier to run and how to window the audio.
ClassifierInfoMessage
Mirrors SNClassifySoundRequest's read-only properties.
SoundAnalysisBindings
Injectable platform bindings and callback routing.

Enums

MicrophonePermissionMessage
Mirrors AVAuthorizationStatus for the microphone.

Functions

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