| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current MacroDroid mode.</pre> |
| | | | |
| − | This constraint can be used to allow a trigger to fire only when in a specific MacroDroid mode.
| + | ''' Options ''' |
| | + | |
| | + | * '''Mode''' - Select the mode to check |
| | + | * '''Enter Mode/Exit Mode/Any Change''' - Optionally check for a specific mode transition |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Enable Wi-Fi only when the Work mode is active'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Screen On/Off - Screen On</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Wifi Configure (Enable)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | MacroDroid Mode - Work</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: MacroDroid Mode Change|MacroDroid Mode Change Trigger]] |