Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">The MacroDroid Drawer Open/Close trigger fires when the MacroDroid drawer (the side panel in the app) is opened or closed. This allows you to automate actions based on user interaction with the MacroDroid interface.</pre>
Will fire when the MacroDroid drawer is opened or closed.
  −
</pre>
  −
<br>
  −
'''Example Usage'''<br/>
     −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
''' Options '''
Triggers
      +
* '''Drawer Opened''': Trigger fires when the MacroDroid drawer is opened
 +
* '''Drawer Closed''': Trigger fires when the MacroDroid drawer is closed
   −
</pre><br>
+
''' Examples '''
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
      +
''Example 1: Vibrate on Drawer Open''
 +
  <pre class="trigger-style">Triggers
   −
</pre><br>
+
MacroDroid Drawer Opened</pre>
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
+
  <pre class="action-style">Actions
Constraints
      +
Vibrate - 50ms</pre>
   −
</pre><br>
+
Provides haptic feedback when opening the MacroDroid drawer.
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
  −
Local variables
      +
''Example 2: Log Drawer Usage''
 +
  <pre class="trigger-style">Triggers
   −
</pre><br>
+
MacroDroid Drawer Opened</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Set Variable - drawer_opens = [v=drawer_opens] + 1
 +
Write to File - drawer_log.txt - Drawer opened at {hour}:{minute}:{second}</pre>
 +
 
 +
Tracks how often the MacroDroid drawer is accessed.
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger only fires when interacting with the MacroDroid app itself.
 +
* The drawer refers to the navigation drawer (side panel) within the MacroDroid application.
 +
* This is primarily useful for:
 +
** Adding haptic or audio feedback to the app interface
 +
** Logging app usage patterns
 +
** Triggering app-specific customizations
 +
 
 +
''' See Also '''
 +
 
 +
* [[Action:_MacroDroid_Drawer|MacroDroid Drawer Action]]