querySegments

abstract fun querySegments(callback: Method<List<Int>>): TriggerAction

Deprecated

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

Replace with

cohorts(callback: Method<List<String>>)

Notifies the specified callback when any segment changes occur.

Return

a TriggerAction representing the active subscription.

Samples

samples.permutive.TriggersProviderKt.querySegments

Parameters

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.