You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add a map of triggers. May show an In-App Message if its trigger conditions were met.
833
+
*
834
+
* @param {Object.<string, string | number | Object>} triggers Allows you to set multiple trigger key/value pairs simultaneously. Pass a json object with key/value pairs like: `{"key": "value", "key2": "value2"}`.
835
+
*/
836
+
@Cordova({
837
+
sync: true,
838
+
})
839
+
addTriggers(triggers: Object): void{}
840
+
841
+
/**
842
+
* Removes a single trigger for the given key. May show an In-App Message if its trigger conditions were met.
843
+
*
844
+
* @param {string} key Key for trigger to remove.
845
+
*/
846
+
@Cordova({
847
+
sync: true,
848
+
})
849
+
removeTriggerForKey(key: string): void{}
850
+
851
+
/**
852
+
* Removes a list of triggers based on a collection (array) of keys. May show an In-App Message if its trigger conditions were met.
853
+
*
854
+
* @param {string[]} keys Removes a collection of triggers from their keys. Pass an array of trigger keys like: `["key1", "key2", "key3"]`.
855
+
*/
856
+
@Cordova({
857
+
sync: true,
858
+
})
859
+
removeTriggersForKeys(keys: string[]): void{}
860
+
861
+
/**
862
+
* Gets a trigger value for a provided trigger key.
863
+
*
864
+
* @param {string} key Key for trigger to get value.
865
+
* @returns {Promise<string | number | Object>} Return value set with `addTrigger`, or `null`/`nil` (iOS) if never set or removed.
* Allows you to temporarily pause all In-App Messages. You may want to do this while the user is engaged in an activity that you don't want a message to interrupt (such as watching a video).
874
+
* An In-App Message that would display if not paused will display right after resume if its conditions to display remains satisfied.
875
+
*
876
+
* @param {boolean} pause To pause, set `true`. To resume, set `false`.
0 commit comments