MethodChannelGGWaveFlutter constructor

MethodChannelGGWaveFlutter({
  1. required dynamic onMessageReceivedListener(
    1. String message
    ),
  2. required dynamic onPlaybackCompleteListener(),
  3. required dynamic onPlaybackStartListener(),
  4. required dynamic onPlaybackStopListener(),
  5. required dynamic onCaptureStartListener(),
  6. 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;
}