| Line 1: |
Line 1: |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether airplane mode is enabled or disabled.</pre> |
| − | This constraint can be used to allow/prevent functionality from running based on the current state of the device's airplane (flight) mode. | + | |
| − | </pre> | + | ''' Options ''' |
| | + | |
| | + | * '''Airplane Mode Enabled''': Constraint passes only when airplane mode is on |
| | + | * '''Airplane Mode Disabled''': Constraint passes only when airplane mode is off |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Remind the user when they turn the screen on that airplane mode is on'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Screen On/Off - Screen On</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Vibrate - Short Buzz |
| | + | Edge notificaiton light (hide after 5 seconds)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Airplane Mode - Airplane Mode Enabled</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Airplane mode changed|Airplane mode changed Trigger]] |