Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #ACC8E5; color: #112A46; 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>
+
''' Options '''
 +
 
 +
* '''Drawer Opened''': Trigger fires when the MacroDroid drawer is opened
 +
* '''Drawer Closed''': Trigger fires when the MacroDroid drawer is closed
 +
 
 +
''' Examples '''
 +
 
 +
''Example 1: Vibrate on Drawer Open''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
MacroDroid Drawer Opened</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Vibrate - 50ms</pre>
 +
 
 +
Provides haptic feedback when opening the MacroDroid drawer.
 +
 
 +
''Example 2: Log Drawer Usage''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
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]]