TriggersProvider

Notifies observers of the current state and subsequent changes to segments or query states.

Functions

Link copied to clipboard
abstract fun cohortActivations(activationType: String, callback: Method<List<String>>): TriggerAction

Notifies the specified callback when any cohort updates occur for the specified activation type.

Link copied to clipboard
abstract fun cohorts(callback: Method<List<String>>): TriggerAction

Notifies the specified callback when any cohort changes occur.

Link copied to clipboard
abstract fun queryReactions(reaction: String, callback: Method<List<Int>>): TriggerAction

Notifies the specified callback when any segment changes occur for the specified reaction.

Link copied to clipboard
abstract fun querySegments(callback: Method<List<Int>>): TriggerAction

Notifies the specified callback when any segment changes occur.

Link copied to clipboard
abstract fun <T : Any> triggerAction(queryId: Int, callback: Method<T>): TriggerAction

Notifies the specified callback with the query state.

abstract fun triggerAction(cohortId: String, callback: Method<Boolean>): TriggerAction

Notifies the given callback when the cohort result updates.

Link copied to clipboard
abstract fun triggerActionMap(queryId: Int, callback: Method<Map<String, Any>>): TriggerAction

Notifies the specified callback with the query state (when the state is a complex type).