init method
Initializes the Signed Call SDK
initProperties
- configuration for initialization
initHandler
- to get the initialization update(i.e. success/failure)
Implementation
@override
Future<void> init(
Map<String, dynamic> initProperties, SignedCallInitHandler initHandler) {
_initHandler = initHandler;
final convertedInitProperties = initProperties.map((key, value) {
if (value is SCSwipeOffBehaviour) {
return MapEntry(key, value.toValue());
} else if (value is FCMProcessingMode) {
return MapEntry(key, value.toValue());
}
return MapEntry(key, value);
});
return _methodChannel.invokeMethod(
SCMethodCall.init, {argInitProperties: convertedInitProperties});
}