startBgMethodChannel static method

Future<bool> startBgMethodChannel()

Implementation

static Future<bool> startBgMethodChannel() async {
  final handle = _getCallbackHandle(_plengiCallbackDispatcher);
  if (handle == null) {
    return false;
  }
  final status = await _channel.invokeMethod<bool>('LoplatPlengiListener.start', [handle.toRawHandle()]);
  return status ?? false;
}