| Line 1: |
Line 1: |
| − | <pre class="header-style"> | + | <pre class="header-style">The Home Button Long Press trigger fires when you perform a long press on the device's home button. This trigger requires MacroDroid to be set as the default voice input and assistance application.</pre> |
| − | This trigger is fired when a long press is performed on the home button.
| |
| | | | |
| − | Note that this trigger requires MacroDroid to be set as the default voice input and assistance application.
| + | ''' Options ''' |
| − | </pre>
| |
| | | | |
| − | '''Example Usage'''<br/>
| + | This trigger has no configurable options. Once added, it will fire whenever a long press is detected on the home button (typically around 1.5 seconds). |
| − | If you hold down the home button for a long time (1.5s by default) you will take a screenshot.
| |
| − | <pre class="trigger-style">
| |
| − | Triggers
| |
| | | | |
| − | Long press home button
| + | ''' Requirements ''' |
| − | </pre>
| |
| − | <pre class="action-style">
| |
| − | Actions
| |
| | | | |
| − | Take screenshot | + | * MacroDroid must be configured as the default assist and voice input app |
| − | </pre><br> | + | * Requires Android 6.0 (API 23) or higher |
| | + | * The default assist app setting can be found in: Settings > Apps > Default Apps > Digital assistant app (location may vary by device) |
| | + | |
| | + | ''' Examples ''' |
| | + | |
| | + | ''Example 1: Quick Screenshot'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Home Button Long Press</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Take Screenshot</pre> |
| | + | |
| | + | Takes a screenshot when the home button is held for approximately 1.5 seconds. |
| | + | |
| | + | ''Example 2: Launch Voice Command'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Home Button Long Press</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Speak Text - What would you like me to do? |
| | + | Voice Input</pre> |
| | + | |
| | + | Launches MacroDroid's voice input feature when long pressing the home button. |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger requires MacroDroid to replace your default assistant app (like Google Assistant). |
| | + | * On some devices, this trigger may also fire when long pressing the power button. |
| | + | * If the trigger shows a warning that it's not configured properly, tap the warning to open the settings to set MacroDroid as the default assistant. |
| | + | * Setting MacroDroid as the default assistant will prevent the original assistant (e.g., Google Assistant) from launching on long press. |
| | + | * The trigger will show an edit mode warning if MacroDroid is not set as the default assistant. |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Action:_Voice_Input|Voice Input Action]] |
| | + | * [[Trigger:_Device_Button|Device Button Trigger]] |