Changes

no edit summary
Line 1: Line 1: −
===<p><b>When is this trigger activated?</b></p>===
+
<pre class="header-style">
 +
This trigger will fire when an application becomes the foreground application (launched) or when it is no longer the foreground app (closed).
 +
</pre>
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
* ''When this trigger is present, you can use more [...]'' ''[https://macrodroidforum.com/wiki/index.php/Magic_text#Application_Launched.2FClosed magic text]''
This trigger will fire when an application becomes the foreground application (launched) or when it is no longer the foreground app (closed).</pre>
     −
===<p><b>Magic Text</b></p>===
+
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>Supported configurations </strong></span>
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>App Launched/Closed </strong></span>
This action supports the use of magic text, you can use it in the "Enter package name" option, you can manually define the package name if you know it or by extracting it from some previously defined variable, using the (...) button.
  −
It also has magic output text [app_name] and [app_package] </pre> [[Magic_text2#Apllication_Launched.2FClosed|More information on the associated magic text.]]
  −
<br>
     −
===<p><b>Supported configurations</b></p>===
+
They share the same options.
 +
* Select application(s): It will be activated when one or more applications are started or closed.
 +
 
 +
* Enter package name: It will be activated when the application package is started or closed, you can get it from some variable or magic text [...]
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Force legacy mechanism </strong></span>
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
  −
Force legacy mechanism:
   
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.
 
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.
   −
* Prevent notifications interfering:
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Prevent notifications interfering </strong></span>
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.
     −
* More information about this:
+
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>More information about this </strong></span>
    
Due to changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
 
Due to changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
</pre><br>
  −
  −
===<p><b>Example Usage 1</b></p>===
  −
  −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
  −
When starting YouTube the screen rotation will be activated
  −
</pre><br>
  −
  −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
  −
Triggers
  −
  −
Application launched (YouTube)
  −
</pre><br>
  −
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
  −
  −
Enable screen rotation.
  −
</pre><br>
  −
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
  −
Constraints
  −
  −
  −
</pre><br>
  −
  −
===<p><b>Example Usage 2</b></p>===
  −
  −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
  −
When closing YouTube the screen rotation will be deactivate
  −
</pre><br>
  −
  −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
  −
Triggers
  −
  −
Application closed(YouTube)
  −
</pre><br>
  −
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
  −
  −
Disable screen rotation.
  −
</pre><br>
  −
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
  −
Constraints
  −
  −
  −
</pre>