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 location mode.</pre>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
This constraint can be used to allow a trigger to fire only when the location mode is set to a specific value.
+
''' Options '''
</pre>
+
 
 +
Android 9 and below
 +
 
 +
* Location Service Off
 +
* High Accuracy
 +
* Battery Saving
 +
* Device Only
 +
 
 +
Android 10 and above
 +
 
 +
* Location Service Off
 +
* Location Service On
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Warn the user when launching Google Maps if location services are off''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Application Launched: Google Maps</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Popup Message: "Warning - Location Services are off"</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Location Mode - Location Service off</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Constraint: GPS State|GPS State Constraint]]