Difference between revisions of "Trigger: Power Button Toggle"

m
m
 
(2 intermediate revisions by 2 users not shown)
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>
 
'''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;">
 
Constrains
 
 
 
</pre><br>
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
 
 
</pre><br>
 

Latest revision as of 19:34, 25 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.