setListenerForService method

Future setListenerForService(
  1. OnListenerForService listener
)

Implementation

Future setListenerForService(OnListenerForService listener) {
  if (Platform.isAndroid) {
    this._listenerForService = listener;
    return _channel.invokeMethod('setListenerForService', _buildParam({}));
  } else {
    throw UnsupportedError("only supprot android platform");
  }
}