initialize method

  1. @override
Future<void> initialize({
  1. String? serviceUuid,
  2. bool? bondingRequired,
  3. bool? encryptionRequired,
})
override

Initializes native P2P and BLE resources.

Must be called before most other host or client operations. Returns a Future that completes when initialization is done.

Implementation

@override
Future<void> initialize({
  String? serviceUuid,
  bool? bondingRequired,
  bool? encryptionRequired,
}) async {
  await methodChannel.invokeMethod('initialize', {
    'serviceUuid': serviceUuid,
    'bondingRequired': bondingRequired ?? false,
    'encryptionRequired': encryptionRequired ?? false,
  });
}