We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to check if the Launch Reason is Quick Launch, so I can do a custom action?
The text was updated successfully, but these errors were encountered:
This seems to be one point of the Launch Reason API. What I don’t get is if the reason is a pure enumeration or flags.
In the Wakeups guide, you can see this snippet which suggests that it is not flags but just a pure enumeration:
static void init() { if(launch_reason() == APP_LAUNCH_WAKEUP) { // The app was started by a wakeup event.
A more pertinent example to your question is in the One Click Actions guide:
A common example, would be to detect if the application was actually started by the user, from either the launcher, or quick launch. if(launch_reason() == APP_LAUNCH_USER || launch_reason() == APP_LAUNCH_QUICK_LAUNCH) { // Perform One Click } else { // Display a message }
A common example, would be to detect if the application was actually started by the user, from either the launcher, or quick launch.
if(launch_reason() == APP_LAUNCH_USER || launch_reason() == APP_LAUNCH_QUICK_LAUNCH) { // Perform One Click } else { // Display a message }
Sorry, something went wrong.
And now I notice that this is against pebblejs and not PebbleKit, oops…
No branches or pull requests
Is there a way to check if the Launch Reason is Quick Launch, so I can do a custom action?
The text was updated successfully, but these errors were encountered: