init method

  1. @override
Future<void> init(
  1. Map<String, dynamic> pushParams,
  2. CallerCustomizationFunction? callerCustomizationCallback,
  3. BackgroundVoipCallHandler? backgroundVoipCallHandler
)
override

Implementation

@override
Future<void> init(
  Map<String, dynamic> pushParams,
  CallerCustomizationFunction? callerCustomizationCallback,
  BackgroundVoipCallHandler? backgroundVoipCallHandler,
) async {
  this.callerCustomizationCallback = callerCustomizationCallback;
  if (backgroundVoipCallHandler != null) {
    final backgroundCallback =
        PluginUtilities.getCallbackHandle(backgroundVoipCallHandler);
    pushParams['callbackHandler'] = backgroundCallback?.toRawHandle();
  }
  await methodChannel.invokeMethod<String>('initData', pushParams);
}