Overview
Switch Event triggers fire when the user toggles a native switch on and off. You can choose which event the trigger should fire.
Note: Switch Event triggers will only work when added to a native switch.
Trigger Properties
Event
Set the trigger to fire when the switch is on, when the switch is off, or when the switch's value changes:
Is On: Fires when the switch is turned on.
Is Off: Fires when the switch is turned off.
Any: Fires when the switch's value changes.
Is Enabled
Set if the trigger should fire when the trigger's conditions are met.
Expression Editor Properties
Location X
trigger.locationX
Horizontal location of your finger in relation to the switch.
Location Y
trigger.locationY
Vertical location of your finger in relation to the switch.
Is Enabled
trigger.isEnabled
Whether the trigger is enabled or disabled.