initialize method

  1. @override
Future<void> initialize({
  1. required String apiKey,
  2. required BridgefyDelegate delegate,
  3. bool verboseLogging = false,
})
override

Implementation

@override
Future<void> initialize({
  required String apiKey,
  required BridgefyDelegate delegate,
  bool verboseLogging = false,
}) async {
  try {
    await methodChannel.invokeMethod(
      'initialize',
      {
        "apiKey": apiKey,
        "verboseLogging": verboseLogging,
      },
    );
    _delegate = delegate;
    methodChannel.setMethodCallHandler(delegateCallHandler);
  } on PlatformException catch (e) {
    throw _bridgefyException(e);
  }
}