Difference between revisions of "Trigger: Power Button Toggle"

m
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
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/>
 
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
 
 
</pre><br>
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
 
 
</pre><br>
 

Revision as of 18:36, 23 January 2024

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.