Automations class abstract
Constructors
Properties
-
failedActionsStream
→ Stream<
ActionResult> -
Called when Automations flow fails executing an action
actionResult
failed actionno setter -
finishedActionsStream
→ Stream<
ActionResult> -
Called when Automations flow finishes executing an action
actionResult
executed action. For instance, if the user made a purchase then action.type = ActionResultType.purchase. You can use the Qonversion.checkEntitlements method to get available entitlements.no setter -
finishedAutomationsStream
→ Stream<
Null> -
Called when Automations flow is finished and the Automations screen is closed
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shownScreensStream
→ Stream<
String> -
Called when Automations' screen is shown
screenId
shown screen Idno setter -
startedActionsStream
→ Stream<
ActionResult> -
Called when Automations flow starts executing an action
actionResult
action that is being executedno setter
Methods
-
getNotificationCustomPayload(
Map< String, dynamic> notificationData) → Future<Map< String, dynamic> ?> -
Get parsed custom payload, which you added to the notification in the dashboard
notificationData
notification payload data See Firebase RemoteMessage data See APNs notification data Returns a map with custom payload from the notification or null if it's not provided. -
handleNotification(
Map< String, dynamic> notificationData) → Future<bool> -
notificationData
notification payload data See Firebase RemoteMessage data See APNs notification data Returns true when a push notification was received from Qonversion. Otherwise returns false, so you need to handle the notification yourself -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setNotificationsToken(
String token) → Future< void> -
Set push token to Qonversion to enable Qonversion push notifications
token
Firebase device token for Android. APNs device token for iOS -
setScreenPresentationConfig(
QScreenPresentationConfig config, [String? screenId]) → Future< void> -
Set the configuration of screen representation.
config
a configuration to apply.screenId
identifier of screen, to which a config should be applied. If not provided, the config is used for all the screens. -
showScreen(
String screenId) → Future< void> -
Show the screen using its ID.
screenId
Identifier of the screen which must be shown -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
- Use this variable to get a current initialized instance of the Qonversion Automations. Please, use Automations only after calling Qonversion.initialize. Otherwise, trying to access the variable will cause an exception.