TriggerBuilders


class TriggerBuilders


Builders for triggers that can be used to start an animation.

Summary

Nested types

@RequiresSchemaVersion(major = 1, minor = 200)
interface TriggerBuilders.Trigger

Interface defining the triggers that can be fired.

Public functions

java-static TriggerBuilders.Trigger

Creates a Trigger that fires *every time* the condition switches from false to true.

java-static TriggerBuilders.Trigger
@RequiresSchemaVersion(major = 1, minor = 200)
createOnLoadTrigger()

Creates a Trigger that fires immediately when the layout is loaded / reloaded.

Public functions

createOnConditionMetTrigger

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun createOnConditionMetTrigger(dynamicBool: DynamicBuilders.DynamicBool): TriggerBuilders.Trigger

Creates a Trigger that fires *every time* the condition switches from false to true. If the condition is true initially, that will fire the trigger on load.

createOnLoadTrigger

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun createOnLoadTrigger(): TriggerBuilders.Trigger

Creates a Trigger that fires immediately when the layout is loaded / reloaded.