cohorts

abstract fun cohorts(callback: Method<List<String>>): TriggerAction

Notifies the specified callback when any cohort changes occur.

Return

a TriggerAction representing the active subscription.

Samples

samples.permutive.TriggersProviderKt.cohorts

Parameters

callback

The method to be called each time cohort 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.