MindboxMethodHandler class

This class contains the necessary logic of the order of method calls for the correct SDK working.

Platform implementations can use this class for platform calls.

Constructors

MindboxMethodHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
nativeSdkVersion Future<String>
Returns native SDK version.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

executeAsyncOperation({required String operationSystemName, required Map<String, dynamic> operationBody}) Future<void>
Method for register a custom event.
executeSyncOperation({required String operationSystemName, required Map<String, dynamic> operationBody, required dynamic onSuccess(String success), required dynamic onError(MindboxError)}) Future<void>
Method for executing an operation synchronously.
getDeviceUUID({required dynamic callback(String uuid)}) → void
Returns device UUID to callback.
getToken({required dynamic callback(String token)}) → void
Returns token to callback.
handleInAppClick({required InAppClickHandler handler}) → void
Method for handling In-app click.
handleInAppDismiss({required InAppDismissedHandler handler}) → void
Method for handling In-app dismiss.
handlePushClick({required PushClickHandler handler}) → void
Method for handling push-notification click.
init({required Configuration configuration}) Future<void>
Initializes the SDK for further work.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerInAppCallbacks({required List<InAppCallback> callbacks}) → void
Method for registers a list of InAppCallback instances to handle clicks and dismiss in in-apps.
setLogLevel({required LogLevel logLevel}) → void
Method for managing SDK logging
toString() String
A string representation of this object.
inherited
updateNotificationPermissionStatus({required bool granted}) → void
Method for sending notification permission status

Operators

operator ==(Object other) bool
The equality operator.
inherited