Changes

no edit summary
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>
  −
<br>
  −
'''Example Usage'''<br/>
     −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
''' Options '''
Triggers
      +
This trigger has no configurable options. It simply fires when the recent apps screen is displayed.
   −
</pre><br>
+
''' Requirements '''
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
      +
* Accessibility Service must be enabled
   −
</pre><br>
+
''' Compatibility '''
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
  −
Constraints
      +
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><br>
+
''' Examples '''
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
  −
Local variables
      +
'''Example 1: Log recent apps usage'''
   −
</pre><br>
+
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