| 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 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.
| + | ''' 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]] |