Changes

no edit summary
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 device orientation.</pre>
   −
This constraint can be used to allow a trigger to fire only when the device is in portrait/landscape mode.
+
''' Options '''
 +
 
 +
* '''Portrait/Landscape''': Select the required orientation
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Apply a higher brightness only in landscape mode''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Screen On/Off - Screen On</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Brightness (70%)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Device Orientation - Landscape</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Screen Orientation|Screen Orientation Trigger]]