Difference between revisions of "Trigger: USB Device Connect/Disconnect"
m |
m |
||
Line 1: | Line 1: | ||
+ | <pre style="background-color: #EEEEEE; color: Black; 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> | ||
'''Example Usage'''<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;"> | ||
+ | Constrains | ||
+ | |||
+ | |||
+ | </pre><br> | ||
+ | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Local variables | ||
+ | |||
+ | |||
+ | </pre><br> |
Revision as of 18:01, 29 April 2023
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.
Example Usage
If the USB device is connected, open the file manager.
Triggers USB device connected
Actions Launch app (File manager)
Constrains
Local variables