Shortcut trigger variables
Posted: 17 May 2016 17:55
I don't know whether this request requires cooperation of the application - often a launcher - invoking the shortcut. Currently it seems that even if such an app wanted to cooperate, there appear to be no provisions for passing the invocation method and reason to the Automagic shortcut, which in turn makes those available to the flow, in form of variables.
Currently, i don't seem to have any other way to know about how a shortcut was invoked (like: from a launcher desktop object - icon label passed to shortcut too - , by single tap/long tap/double click/wipe up, down, left, right, for by Automagic action "Excecute flow", Manual execution, and all the ways to launch the action assiciated with a shortcut). {trigger} only carries information that flow was launched because of Shortcut - as if I didn't know.
This usually means that for each kind of activation, a new flow / shortcut trigger is needed, in order to react to the context of invocation. This also means that each individual flow must be bound to every invocation method, making this hard to maintain, compared to ...:
Were flows able to derive the method of invocation from trigger variables, as well as additional information - such as label of invoking desktop icon - the same flow could be bound to many invocation methods: What needs to be done could be determined by the flow, such as, whether it needs to respond to a single tap to a desktop object, a clickable field of a widget, or the custom button of an application.
Whether Automagic can provide that information depends of course on whether it is avaiable to Automagic. Trying to establish a bilateral convention between other applications and Automagic is probably doomed to become a fruitless endeavor. But - and that part is beyond my knowledge - maybe Android gathers that kind of information already, free to take and provide, in which case the Shortcut trigger should.
Currently, i don't seem to have any other way to know about how a shortcut was invoked (like: from a launcher desktop object - icon label passed to shortcut too - , by single tap/long tap/double click/wipe up, down, left, right, for by Automagic action "Excecute flow", Manual execution, and all the ways to launch the action assiciated with a shortcut). {trigger} only carries information that flow was launched because of Shortcut - as if I didn't know.
This usually means that for each kind of activation, a new flow / shortcut trigger is needed, in order to react to the context of invocation. This also means that each individual flow must be bound to every invocation method, making this hard to maintain, compared to ...:
Were flows able to derive the method of invocation from trigger variables, as well as additional information - such as label of invoking desktop icon - the same flow could be bound to many invocation methods: What needs to be done could be determined by the flow, such as, whether it needs to respond to a single tap to a desktop object, a clickable field of a widget, or the custom button of an application.
Whether Automagic can provide that information depends of course on whether it is avaiable to Automagic. Trying to establish a bilateral convention between other applications and Automagic is probably doomed to become a fruitless endeavor. But - and that part is beyond my knowledge - maybe Android gathers that kind of information already, free to take and provide, in which case the Shortcut trigger should.