1,083 bytes added
, 9 January
<pre class="header-style">This trigger fires when USB tethering is enabled or disabled on the device.</pre>
''' Options '''
* '''Enabled''': Trigger when USB tethering is turned on
* '''Disabled''': Trigger when USB tethering is turned off
''' Examples '''
''Example 1: Track when USB tethering is enabled''
<pre class="trigger-style">Triggers
USB Tethering - Enabled</pre>
<pre class="action-style">Actions
Set Variable: [usb_tethering] = "on"
Display Notification: "USB tethering enabled"</pre>
Keeps a simple state variable and confirmation notification when tethering turns on.
''Example 2: Show edge light when USB tethering is on''
<pre class="trigger-style">Triggers
USB Tethering - Enabled
USB Tethering - Disabled</pre>
<pre class="action-style">Actions
IF (Trigger Fired - USB Tethering - Enabled)
Edge Notification Light Show (no auto hide)
ELSE
Edge Notification Light Hide Clear
ENDIF</pre>
''' Notes '''
* This trigger fires when the system reports a USB tethering state change
''' See Also '''
* [[Action: USB Tethering|USB Tethering Action]]