triggerActionMap

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

Deprecated

Non-boolean query results are no longer supported, trigger callbacks will no longer be called

Replace with

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

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

Return

a TriggerAction representing the active subscription.

Samples

samples.permutive.TriggersProviderKt.triggerActionMap

Parameters

callback

The method to be called each time the query state changes. Will be called once upon creation, and each time a change occurs. The callback may not be on the calling thread.