Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #ACC8E5; color: #112A46; 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>
+
''' Options '''
''This action may not be available/function on modern devices.''
+
 
 +
This trigger has no configurable options. It simply fires when the recent apps screen is displayed.
 +
 
 +
''' Requirements '''
 +
 
 +
* Accessibility Service must be enabled
 +
 
 +
''' Compatibility '''
 +
 
 +
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.
 +
 
 +
''' Examples '''
 +
 
 +
'''Example 1: Log recent apps usage'''
 +
 
 +
Track when you access the task switcher:
 +
 
 +
  <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