API for checking what caused the application to launch.
This includes the system, launch by user interaction (User selects the application from the launcher menu), launch by the mobile or a mobile companion application, or launch by a scheduled wakeup event for the specified application.
Provides the method used to launch the current application.
The method or reason the current application was launched
Get the argument passed to the app when it was launched.
Currently the only way to pass arguments to apps is by using an openWatchApp action on a pin.
The argument passed to the app, or 0 if the app wasn't launched from a Launch App action
Get the button id used to launch the app. Only valid if the launch reason is APP_LAUNCH_USER or APP_LAUNCH_QUICK_LAUNCH.
Get the action that was used to quick launch the app.
The AppQuickLaunchAction used to launch the app, or APP_QUICK_LAUNCH_ACTION_NONE if the app was not launched via Quick Launch.
AppLaunchReason is used to inform the application about how it was launched.
App launched by the system.
App launched by user selection in launcher menu.
App launched by mobile or companion app.
App launched by wakeup event.
App launched by worker calling worker_launch_app()
App launched by user using quick launch.
App launched by user opening it from a pin.
App launched by a smartstrap.
Details about how an app was quick launched. Returned by app_launch_get_quick_launch_action.
App was not launched via Quick Launch.
User held a single button.
User tapped a button (single click)
User held a button combination.
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can join us on the Discord!