SoundAnalysisBindings constructor
SoundAnalysisBindings({
- AppleSoundAnalysisHostApi? host,
- AppleSoundAnalysisPlatformApi? platform,
- bool registerCallbacks = true,
Creates bindings; disable callback registration when driving fakes.
Implementation
SoundAnalysisBindings({
AppleSoundAnalysisHostApi? host,
AppleSoundAnalysisPlatformApi? platform,
bool registerCallbacks = true,
}) : host = host ?? AppleSoundAnalysisHostApi(),
platform = platform ?? AppleSoundAnalysisPlatformApi() {
if (registerCallbacks) AppleSoundAnalysisCallbackApi.setUp(callbackHandler);
}