| 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 the device is face up or face down.</pre> |
| | | | |
| − | This constraint can be used to allow a trigger to fire only when the device is facing in a particular physical orientations.
| + | ''' Options ''' |
| | + | |
| | + | * '''Face Up''': Constraint passes only when the device is face up |
| | + | * '''Face Down''': Constraint passes only when the device is face down |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Vibrate the device if it's currently face down when a WhatsApp notification is received'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Notification Received (Whatsapp)</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Vibrate - Rapid</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Device Facing - Face Down</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Flip Device|Flip Device Trigger]] |
| | + | * [[Action: Torch On/Off|Torch On/Off Action]] |