OneSignalInAppMessages class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addClickListener(
OnClickInAppMessageListener listener) → void - The in app message clicked handler is called whenever the user clicks a OneSignal IAM button or image with an action event attacthed to it
-
addDidDismissListener(
OnDidDismissInAppMessageListener listener) → void -
addDidDisplayListener(
OnDidDisplayInAppMessageListener listener) → void -
addTrigger(
String key, String value) → Future< void> - Adds a single key, value trigger, which will trigger an in app message if one exists matching the specific trigger added
-
addTriggers(
Map< String, String> triggers) → Future<void> - Adds one or more key, value triggers, which will trigger in app messages (one at a time) if any exist matching the specific triggers added
-
addWillDismissListener(
OnWillDismissInAppMessageListener listener) → void -
addWillDisplayListener(
OnWillDisplayInAppMessageListener listener) → void -
arePaused(
) → Future< bool> - Gets whether of not in app messages are paused
-
clearTriggers(
) → Future< void> - Get the trigger value associated with the key provided
-
lifecycleInit(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paused(
bool pause) → Future< void> - Toggles the showing of all in app messages
-
removeClickListener(
OnClickInAppMessageListener listener) → void -
removeDidDismissListener(
OnDidDismissInAppMessageListener listener) → void -
removeDidDisplayListener(
OnDidDisplayInAppMessageListener listener) → void -
removeTrigger(
String key) → Future< void> - Remove a single key, value trigger to prevent an in app message from showing with that trigger
-
removeTriggers(
List< String> keys) → Future<void> - Remove one or more key, value triggers to prevent any in app messages from showing with those triggers
-
removeWillDismissListener(
OnWillDismissInAppMessageListener listener) → void -
removeWillDisplayListener(
OnWillDisplayInAppMessageListener listener) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited