Line 4: |
Line 4: |
| This action allows you to set the device's current default digital assistant. | | This action allows you to set the device's current default digital assistant. |
| This will (for example) allow you to switch dynamically between the Google default assistant and some other app when required. | | This will (for example) allow you to switch dynamically between the Google default assistant and some other app when required. |
− |
| |
| </pre> | | </pre> |
− | ''''' Note: '''''
| + | <pre style="background-color: #FFFF99; color: #112A46; border-radius: 10px; padding: 10px;"> |
− | that the currently selected default digital assistant may not update correctly in the settings on some devices (but this should not effect the functionality).
| + | That the currently selected default digital assistant may not update correctly in the settings on some devices (but this should not effect the functionality)_ |
− | <br/> | + | </pre> |
| | | |
| ==<p><b>Configuration available</b></p>== | | ==<p><b>Configuration available</b></p>== |
Line 23: |
Line 22: |
| You can define between any other application that has compatibility as assistance for example (MacroDroid, Google, Alexa etc). | | You can define between any other application that has compatibility as assistance for example (MacroDroid, Google, Alexa etc). |
| </pre><br/> | | </pre><br/> |
− |
| |
− | ==<p><b>Example</b></p>==
| |
− |
| |
− | ''''' With a widget button switch between Google support and MacroDroid. '''
| |
− | <br>
| |
− |
| |
− | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
| |
− | Triggers
| |
− |
| |
− | Widget Button (Green)
| |
− | </pre><br>
| |
− |
| |
− | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
− | Actions
| |
− |
| |
− | Set Variable
| |
− | assistant: (Invert)
| |
− | </pre>
| |
− |
| |
− | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
| |
− | If
| |
− | assistant = True
| |
− | </pre>
| |
− |
| |
− | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
− | Actions
| |
− |
| |
− | Set Digital Assistant
| |
− | Google
| |
− | </pre>
| |
− |
| |
− | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
| |
− | Else
| |
− | </pre><br>
| |
− |
| |
− | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
− | Actions
| |
− |
| |
− | Set Digital Assistant
| |
− | Macrodroid
| |
− | </pre>
| |
− |
| |
− | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;">
| |
− | End If
| |
− | </pre><br>
| |
− |
| |
− | <pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;">
| |
− | Constraints
| |
− |
| |
− | </pre><br>
| |
− | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
| |
− | Local variables
| |
− |
| |
− | assistant = False
| |
− | </pre><br>
| |