queryReactions

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

Deprecated

Deprecated, replace with the cohortsActivations function to get support for all cohort types.

Replace with

cohortActivations(activationType: String, callback: Method<List<String>>)

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

Return

a TriggerAction representing the active subscription.

Samples

samples.permutive.TriggersProviderKt.queryReactions

Parameters

reaction

the name of the reaction type (e.g. "dfp")

callback

The method to be called each time segment entry/exit has occurred. Will be called once upon creation, and each time a change happens. The callback may not be on the calling thread.