| 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 the device is locked or unlocked.</pre> |
| − | This constraint can be used to allow a trigger to fire only when the device is locked/unlocked. | + | |
| − | </pre> | + | ''' Options ''' |
| | + | |
| | + | * '''Locked''': Constraint passes only when the device is locked |
| | + | * '''Unlocked''': Constraint passes only when the device is unlocked |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Only open a password manager when the device is unlocked'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Screen On/Off - Screen On</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Launch Application: 1Password</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Device Locked/Unlocked - Unlocked</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Screen Unlocked|Screen Unlocked Trigger]] |