ggwaveMethodHandler method

  1. @override
Future ggwaveMethodHandler(
  1. MethodCall methodCall
)
override

Implementation

@override
Future<dynamic> ggwaveMethodHandler(MethodCall methodCall) async {
  switch (methodCall.method) {
    case 'onMessageReceived':
      String message = methodCall.arguments as String;
      _onMessageReceived(message);
      break;
    case 'onPlaybackComplete':
      _onPlaybackComplete();
      break;
    case 'onCaptureStart':
      _onCaptureStart();
      break;
    case 'onCaptureStop':
    _onCaptureStop();
    break;
    case 'onPlaybackStart':
      _onPlaybackStart();
      break;
    case 'onPlaybackStop':
      _onPlaybackStop();
      break;
    default:
      throw MissingPluginException('notImplemented');
  }
}