(→‎List of Triggers: Added "Popup Message" page)
Tags: Mobile web edit Mobile edit
Line 1: Line 1:
<pre class="header-style>
+
<pre class="header-style">
 
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.
 
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.
  
Line 12: Line 12:
  
 
= List of Triggers =
 
= List of Triggers =
 +
 +
[[Trigger: Accessibility Service State|Accessibility Service State]]
  
 
[[Trigger: Activity Recognition|Activity Recognition]]
 
[[Trigger: Activity Recognition|Activity Recognition]]
Line 72: Line 74:
  
 
[[Trigger: Failed Login Attempt|Failed Login Attempt]]
 
[[Trigger: Failed Login Attempt|Failed Login Attempt]]
 +
 +
[[Trigger: File Shared to MacroDroid|File Shared to MacroDroid]]
  
 
[[Trigger: Fingerprint Gesture|Fingerprint Gesture]]
 
[[Trigger: Fingerprint Gesture|Fingerprint Gesture]]
Line 78: Line 82:
  
 
[[Trigger: Floating Button|Floating Button]]
 
[[Trigger: Floating Button|Floating Button]]
 +
 +
[[Trigger: Fold State|Fold State]]
  
 
[[Trigger: Geofence Trigger|Geofence Trigger]]
 
[[Trigger: Geofence Trigger|Geofence Trigger]]
 +
 +
[[Trigger: Google Assistant|Google Assistant]]
  
 
[[Trigger: GPS Enabled/Disabled|GPS Enabled/Disabled]]
 
[[Trigger: GPS Enabled/Disabled|GPS Enabled/Disabled]]
Line 106: Line 114:
  
 
[[Trigger: MacroDroid Drawer Open/Close|MacroDroid Drawer Open/Close]]
 
[[Trigger: MacroDroid Drawer Open/Close|MacroDroid Drawer Open/Close]]
 +
 +
[[Trigger: MacroDroid Icon Long Press Shortcut|MacroDroid Icon Long Press Shortcut]]
  
 
[[Trigger: MacroDroid Initialised|MacroDroid Initialised]]
 
[[Trigger: MacroDroid Initialised|MacroDroid Initialised]]
Line 116: Line 126:
  
 
[[Trigger: Media Button V2 Beta|Media Button V2 Beta]]
 
[[Trigger: Media Button V2 Beta|Media Button V2 Beta]]
 +
 +
[[Trigger: Media Track Changed|Media Track Changed]]
  
 
[[Trigger: Mobile Service Status|Mobile Service Status]]
 
[[Trigger: Mobile Service Status|Mobile Service Status]]
  
 
[[Trigger: Music/Sound playing|Music/Sound playing]]
 
[[Trigger: Music/Sound playing|Music/Sound playing]]
 +
 +
[[Trigger: NFC Enabled State|NFC Enabled State]]
  
 
[[Trigger: NFC Tag|NFC Tag]]
 
[[Trigger: NFC Tag|NFC Tag]]
Line 126: Line 140:
  
 
[[Trigger: Notification Bar Button|Notification Bar Button]]
 
[[Trigger: Notification Bar Button|Notification Bar Button]]
 +
 +
[[Trigger: Photo Taken|Photo Taken]]
  
 
[[Trigger: Popup Message|Popup Message]]
 
[[Trigger: Popup Message|Popup Message]]
Line 154: Line 170:
  
 
[[Trigger: Screen Unlocked|Screen Unlocked]]
 
[[Trigger: Screen Unlocked|Screen Unlocked]]
 +
 +
[[Trigger: Screenshot Content|Screenshot Content]]
  
 
[[Trigger: Shake Device|Shake Device]]
 
[[Trigger: Shake Device|Shake Device]]
Line 184: Line 202:
  
 
[[Trigger: Text Shared to MacroDroid|Text Shared to MacroDroid]]
 
[[Trigger: Text Shared to MacroDroid|Text Shared to MacroDroid]]
 +
 +
[[Trigger: Torch On/Off|Torch On/Off]]
  
 
[[Trigger: UI Click|UI Click]]
 
[[Trigger: UI Click|UI Click]]
  
 
[[Trigger: USB Device Connect/Disconnect|USB Device Connect/Disconnect]]
 
[[Trigger: USB Device Connect/Disconnect|USB Device Connect/Disconnect]]
 +
 +
[[Trigger: USB Tethering|USB Tethering]]
  
 
[[Trigger: Volume Button Long Press|Volume Button Long Press]]
 
[[Trigger: Volume Button Long Press|Volume Button Long Press]]

Revision as of 08:51, 9 January 2026

A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.

For a trigger to fire, the macro must be enabled (i.e. ready to run, not disabled) at the exact time the event occurs.

It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked.

It is not possible to combine triggers with AND logic when using Trigger Fired constraint (Basically saying "If trigger 1 fired AND trigger 2 fired") because a trigger is an instantaneous event, so it is not possible (or highly improbable) to get a state where two instantaneous events happen at exactly the same time. There's always exactly 1 trigger that started an execution of your macro actions.

As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true.

List of Triggers

Accessibility Service State

Activity Recognition

Airplane mode changed

Android Wear

App Install/Remove/Update

Application Launched/Closed

Auto Rotate changed

Autosync changed

Battery Level

Battery Saver State

Battery Temperature

Bluetooth Beacon (experimental)

Bluetooth Event

Calendar Event

Call Active

Call Ended

Call Incoming

Call Missed

Call Outgoing

Cell Tower Change

Clipboard Change

Dark Theme Change

Data Connectivity Change

Day of Week/Month

Day/Time Trigger

Daydream On/Off

Device Boot

Device Docked/Undocked

Dial Phone Number

Empty Trigger

Failed Login Attempt

File Shared to MacroDroid

Fingerprint Gesture

Flip Device

Floating Button

Fold State

Geofence Trigger

Google Assistant

GPS Enabled/Disabled

Headphones Insert/Removed

Home Button Long Press

Hotspot Enabled/Disabled

HTTP Server Request

Intent Received

IP address Change

Light Sensor

Location Trigger

Logcat Message

Macro enabled

Macro finished

MacroDroid Drawer Open/Close

MacroDroid Icon Long Press Shortcut

MacroDroid Initialised

MacroDroid Mode Change

MacroDroid Variable Change

Media Button Pressed

Media Button V2 Beta

Media Track Changed

Mobile Service Status

Music/Sound playing

NFC Enabled State

NFC Tag

Notification

Notification Bar Button

Photo Taken

Popup Message

Power Button Long Press

Power Button Toggle

Power Connected/Disconnected

Priority Mode/Do Not Disturb

Proximity Sensor

Quick Settings tile

Recent Apps Opened

Regular Interval

Roaming Started/Stopped

Screen content

Screen On/Off

Screen Orientation

Screen Unlocked

Screenshot Content

Shake Device

Shortcut Launched

Silent Mode Enabled/Disabled

Sim Card Change

Sleep

SMS Received

SMS Sent

Spotify

Stopwatch

Sunset/Sunrise

Swipe Screen

System Log Entry

System Setting Change

Tasker/Locale Plugin

Text Shared to MacroDroid

Torch On/Off

UI Click

USB Device Connect/Disconnect

USB Tethering

Volume Button Long Press

Volume Button Press

VPN State

Weather

Webhook (URL)

Widget Button

Wifi SSID Transition

Wifi State Change