MethodChannelGGWaveFlutter constructor
MethodChannelGGWaveFlutter({
- required dynamic onMessageReceivedListener(
- String message
- required dynamic onPlaybackCompleteListener(),
- required dynamic onPlaybackStartListener(),
- required dynamic onPlaybackStopListener(),
- required dynamic onCaptureStartListener(),
- required dynamic onCaptureStopListener(),
Implementation
MethodChannelGGWaveFlutter({
required Function(String message) onMessageReceivedListener,
required Function() onPlaybackCompleteListener,
required Function() onPlaybackStartListener,
required Function() onPlaybackStopListener,
required Function() onCaptureStartListener,
required Function() onCaptureStopListener,
}) {
methodChannel.setMethodCallHandler(ggwaveMethodHandler);
_onMessageReceived = onMessageReceivedListener;
_onPlaybackComplete = onPlaybackCompleteListener;
_onPlaybackStart = onPlaybackStartListener;
_onPlaybackStop = onPlaybackStopListener;
_onCaptureStart = onCaptureStartListener;
_onCaptureStop = onCaptureStopListener;
}