startBackgroundService method

  1. @override
Future<void> startBackgroundService()
override

Start background service

Implementation

@override
Future<void> startBackgroundService() async {
  try {
    await _methodChannel.invokeMethod('startBackgroundService');
  } catch (e) {
    throw BluetoothException('Failed to start background service: $e');
  }
}