| Line 1: |
Line 1: |
| − | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | + | <pre class="header-style">This trigger will fire whenever the recent apps/task switcher screen is launched. It detects when the user accesses the Android task manager interface.</pre> |
| − | This trigger will fire whenever the recent apps/task switcher screen is launched. | |
| − | </pre> | |
| | | | |
| − | '''Example Usage'''<br/> | + | ''' Options ''' |
| | | | |
| − | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
| + | This trigger has no configurable options. It simply fires when the recent apps screen is displayed. |
| − | Triggers
| |
| | | | |
| | + | ''' Requirements ''' |
| | | | |
| − | </pre><br>
| + | * Accessibility Service must be enabled |
| − | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Actions
| |
| | | | |
| | + | ''' Compatibility ''' |
| | | | |
| − | </pre><br>
| + | This trigger is only available on Android 8 (Oreo) and below (API level 27 and earlier). On newer Android versions, the trigger is not supported due to changes in how Android handles accessibility events for system UI components. |
| − | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Constrains
| |
| | | | |
| | + | ''' Examples ''' |
| | | | |
| − | </pre><br>
| + | '''Example 1: Log recent apps usage''' |
| − | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Local variables
| |
| | | | |
| | + | Track when you access the task switcher: |
| | | | |
| − | </pre><br> | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Recent Apps Opened</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Log to file (append): "Task switcher opened at [hour]:[minute]:[second]"</pre> |
| | + | |
| | + | '''Example 2: Clear clipboard on task switch''' |
| | + | |
| | + | Automatically clear the clipboard when accessing recent apps for privacy: |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Recent Apps Opened</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Clear Clipboard</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger requires the MacroDroid Accessibility Service to be enabled |
| | + | * The trigger monitors for the Android System UI RecentsActivity |
| | + | * Due to Android restrictions on newer versions, this trigger may not function on devices running Android 9 (Pie) or later |
| | + | * The trigger fires instantly when the recent apps screen is detected |