Difference between revisions of "Trigger: Power Button Toggle"
m |
m |
||
Line 2: | Line 2: | ||
This trigger will fire when the power button is toggled between 3-5 times. Since it is not really possible to detect power button presses this trigger works by counting screen on/off events. On some devices you may need to leave a small delay between each press to ensure the trigger registers. | This trigger will fire when the power button is toggled between 3-5 times. Since it is not really possible to detect power button presses this trigger works by counting screen on/off events. On some devices you may need to leave a small delay between each press to ensure the trigger registers. | ||
</pre> | </pre> | ||
− | + | <br> | |
'''Example Usage'''<br/> | '''Example Usage'''<br/> | ||
Line 16: | Line 16: | ||
</pre><br> | </pre><br> | ||
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | ||
− | + | Constraints | |
Revision as of 08:14, 25 May 2023
This trigger will fire when the power button is toggled between 3-5 times. Since it is not really possible to detect power button presses this trigger works by counting screen on/off events. On some devices you may need to leave a small delay between each press to ensure the trigger registers.
Example Usage
Triggers
Actions
Constraints
Local variables