| Line 1: |
Line 1: |
| | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current Wi-Fi state.</pre> | | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current Wi-Fi state.</pre> |
| | + | <br> |
| | | | |
| − | ''' Options ''' | + | <p style="color:#2465d0">'''Options'''</p> |
| | | | |
| | * '''Enabled''': Constraint passes only when Wi-Fi is on | | * '''Enabled''': Constraint passes only when Wi-Fi is on |
| | * '''Disabled''': Constraint passes only when Wi-Fi is off | | * '''Disabled''': Constraint passes only when Wi-Fi is off |
| | * '''Connected/Disconnected''': Optionally check connection state or SSID | | * '''Connected/Disconnected''': Optionally check connection state or SSID |
| | + | <br> |
| | | | |
| − | ''' Example ''' | + | <p style="color:#2465d0">'''Example'''</p> |
| | | | |
| | ''Example 1: Enable mobile data only when Wi-Fi is disconnected'' | | ''Example 1: Enable mobile data only when Wi-Fi is disconnected'' |
| Line 19: |
Line 21: |
| | | | |
| | Wifi State - Disconnected</pre> | | Wifi State - Disconnected</pre> |
| | + | <br> |
| | | | |
| − | ''' See Also ''' | + | <p style="color:#2465d0">'''Requirements'''</p> |
| | + | * Connectivity Helper is installed<br> |
| | + | * Location permission for MD (must be set to "Allow all the time", not just "Allow only while using the app")<br> |
| | + | * Location is enabled<br> |
| | + | * Since Android 8.1 this functionality requires location permission and location services enabled |
| | + | <br> |
| | + | |
| | + | <p style="color:#2465d0">'''See Also'''</p> |
| | | | |
| | * [[Trigger: Wifi State Change|Wifi State Change Trigger]] | | * [[Trigger: Wifi State Change|Wifi State Change Trigger]] |
| | * [[Action: Wifi Configure|Wifi Configure Action]] | | * [[Action: Wifi Configure|Wifi Configure Action]] |