init method
Future<void>
init(
- Map<
String, dynamic> pushParams, - CallerCustomizationFunction? callerCustomizationCallback,
- 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);
}