Difference between revisions of "Trigger: Floating Button"
m |
|||
Line 1: | Line 1: | ||
− | <pre style="color: | + | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> |
This trigger will display a floating button on the screen that can be clicked to activate a macro. | This trigger will display a floating button on the screen that can be clicked to activate a macro. | ||
Line 5: | Line 5: | ||
If the button is dragged over the trash can icon, the macro will be deactivated (set by default). | If the button is dragged over the trash can icon, the macro will be deactivated (set by default). | ||
− | |||
− | |||
Supported configurations: | Supported configurations: | ||
Line 40: | Line 38: | ||
'''Example Usage:'''<br/> | '''Example Usage:'''<br/> | ||
When you touch the floating button it will start a voice search, only if the phone is unlocked. | When you touch the floating button it will start a voice search, only if the phone is unlocked. | ||
+ | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Triggers | ||
− | |||
Floating button | Floating button | ||
− | </pre> | + | </pre><br> |
− | <pre style="color: # | + | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> |
− | Voice search | + | Actions |
− | </pre> | + | |
− | <pre style="color: | + | Voice search |
+ | </pre><br> | ||
+ | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Constrains | ||
+ | |||
Device unlocked | Device unlocked | ||
− | </pre> | + | </pre><br> |
+ | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Local variables | ||
+ | |||
+ | |||
+ | </pre><br> |
Revision as of 20:41, 28 April 2023
This trigger will display a floating button on the screen that can be clicked to activate a macro. To show and hide the button, the macro must be activated or deactivated accordingly. If the button is dragged over the trash can icon, the macro will be deactivated (set by default). Supported configurations: Identifier: It is an id that will serve you later when you use the "Configure floating button" action to identify the button that will be configured in the same macro or another macro. Icon: It allows you to use installed application icons, user icons (own images), macrodroid icons, as well as notification and material design. Set background: Use a background color below the icon. Transparent background (checkbox): Show the floating button without a background color. Padding: Change a larger or smaller icon padding. Opacity: Change the opacity, higher or lower. Normal or Small: Toggling between 2 different sizes of floating button. Disable macro on remove: This is the default floating button option when you drag the floating button to the trash (it will appear when you start dragging the button) you can also toggle it by just deactivating the trigger (can be re-enabled manually or with the "set floating button action "). Force location when enabled: Whenever this box is checked the floating button appears at the specified coordinates otherwise it will appear at the center of the screen.
Example Usage:
When you touch the floating button it will start a voice search, only if the phone is unlocked.
Triggers Floating button
Actions Voice search
Constrains Device unlocked
Local variables