Difference between revisions of "Trigger: USB Device Connect/Disconnect"

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 a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.
 
This trigger will fire when a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.
  
 
Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.
 
Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.
 
</pre>
 
</pre>
<br>
 
'''Example Usage'''<br/>
 
If the USB device is connected, open the file manager.
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
USB device connected
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
Launch app (File manager)
 
</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:51, 23 January 2024

This trigger will fire when a USB peripheral device such as a keyboard, mouse or USB memory stick is connected/disconnected from the Android phone/tablet.

Note that this trigger will not fire in the case where the Android device is connected to a PC or similar.