Mindbox class

Basic Mindbox API.

Properties

hashCode int
The hash code for this object.
no setterinherited
nativeSdkVersion Future<String>
Returns 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}) → void
Method for register a custom event.
executeSyncOperation({required String operationSystemName, required Map<String, dynamic> operationBody, required dynamic onSuccess(String response), required dynamic onError(MindboxError error)}) → void
Method for executing an operation synchronously.
getDeviceUUID(dynamic callback(String uuid)) → void
Method to obtain device UUID.
getToken(dynamic callback(String token)) → void
Method to obtain token.
init({required Configuration configuration}) → void
Initializes the SDK for further work.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInAppClickRecieved(InAppClickHandler handler) → void
Method for handling In-app click.
onInAppDismissed(InAppDismissedHandler handler) → void
Method for handling In-app dismiss.
onPushClickReceived(PushClickHandler handler) → void
Method for handling push-notification click.
registerInAppCallback({required List<InAppCallback> callbacks}) → void
Method for handling In-app click and dismiss. Returns id, payload and url to callback.
setLogLevel({required LogLevel logLevel}) → void
Method for managing sdk logging
toString() String
A string representation of this object.
inherited
updateNotificationPermissionStatus({required bool granted}) → void
Updates the notification permission status.

Operators

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

Static Properties

instance Mindbox
The instance of the Mindbox to use.
no setter