Package 

Interface TriggersProvider

  • All Implemented Interfaces:

    
    public interface TriggersProvider
    
                        

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

    • Constructor Detail

    • Method Detail

      • cohorts

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

        Notifies the specified callback when any cohort changes occur.

        Parameters:
        callback - The method to be called each time cohort entry/exit has occurred.
      • queryReactions

        @CheckResult()@Deprecated(message = "Deprecated, replace with the cohortsActivations function to get support for all cohort types.", replaceWith = @ReplaceWith(imports = {}, expression = "cohortActivations(activationType: String, callback: Method<List<String>>)"), level = DeprecationLevel.WARNING) abstract TriggerAction queryReactions(String reaction, Method<List<Integer>> callback)

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

        Parameters:
        reaction - the name of the reaction type (e.g.
        callback - The method to be called each time segment entry/exit has occurred.
      • cohortActivations

        @CheckResult() abstract TriggerAction cohortActivations(String activationType, Method<List<String>> callback)

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

        Parameters:
        activationType - the name of the activation type (e.g.
        callback - The method to be called each time a cohort update has occurred.