MindboxPlatform class abstract
The interface that implementations of 'mindbox' must implement.
Platform implementations should extend this class rather than implement it
as mindbox
does not consider newly added methods to be breaking changes.
Extending this class(using extends
) ensures that the subclass will get the
default implementation, while platform implementations that implements
this interface will be broken by newly added MindboxPlatform methods.
Constructors
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 response), required dynamic onError(MindboxError error)}) → Future<void> - Method for executing an operation synchronously.
-
getDeviceUUID(
{required dynamic callback(String)}) → void - Method to obtain device UUID.
-
getToken(
{required dynamic callback(String)}) → void - Method to obtain token.
-
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
-
onInAppClickRecieved(
{required InAppClickHandler handler}) → void - Method for handling In-app click. Returns id, payload and url to callback.
-
onInAppismissed(
{required InAppDismissedHandler handler}) → void - Method for handling In-app dismiss. Returns id to callback.
-
onPushClickReceived(
{required PushClickHandler handler}) → void - Method for handling push-notification click. Returns link and payload to callback.
-
registerInAppCallbacks(
{required List< InAppCallback> inAppCallbacks}) → void - Registers a list of InAppCallback instances to handle clicks and dismiss.
-
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
Static Properties
- instance ↔ MindboxPlatform
-
The instance of MindboxPlatform to use.
getter/setter pair