mindbox_platform_interface library

Classes

Configuration
The class represents the information for SDK initialization.
CopyPayloadInAppCallback
Handler for In-app actions that copies the payload to the clipboard. The CopyPayloadInAppCallback class provides a default implementation for handling in-app messages by copying the associated payload to the clipboard when the in-app message is tapped.
CustomInAppCallback
Handler for In-app actions that allows custom implementation for handling clicks and dismiss events. The CustomInAppCallback class provides a flexible way to implement custom handling for in-app clicks using the InAppClickHandler and dismiss events using the InAppDismissedHandler.
EmptyInAppCallback
Handler for In-app actions that performs no actions. The EmptyInAppCallback class provides a default implementation for handling in-app messages without performing any actions upon tapping or dismissing the in-app message
InAppCallback
Defines a handler for In-app actions
MindboxMethodHandler
This class contains the necessary logic of the order of method calls for the correct SDK working.
MindboxPlatform
The interface that implementations of 'mindbox' must implement.
UrlInAppCallback
Handler for In-app actions. It provides a default implementation for handling in-app messages by opening an associated URL when an in-app message is tapped.

Enums

LogLevel
SDK logging levels

Constants

channel → const MethodChannel
Method channel for the plugin's platform<-->Dart calls.

Functions

mindboxMockMethodCallHandler(MethodCall methodCall) Future
Mock platform channel method call handler.

Typedefs

InAppClickHandler = void Function(String id, String redirectUrl, String payload)
Defines a handler for In-app data
InAppDismissedHandler = void Function(String id)
Defines a handler for In-app dismiss
PushClickHandler = void Function(String link, String payload)
Defines a handler for notification data

Exceptions / Errors

MindboxError
Mindbox error.
MindboxInitializeError
Initialization error.
MindboxInternalError
Internal error.
MindboxNetworkError
Network error.
MindboxProtocolError
Request error/server error.
MindboxServerError
Error for code 5xx.
MindboxUnknownError
Unknown error.
MindboxValidationError
Client error.