Shortcuts (App Actions)
App shortcuts are helpful to users because they allow you, as the app developer, to present them with extra ways of starting your app. For example, if you were developing an email and calendar app, you could present two different app actions, one to open the app directly to the current day of the calendar, and another to open to the email inbox folder.
Sample
Get started
To access the AppActions
functionality, the following platform specific setup is required.
Android
In the Platforms/Android/MainActivity.cs file add the following:
Determine if actions are supported
Not all devices support using app actions. You can check if shortcuts are supported using the following code.
Create actions
App actions can be created at any time, but are often created when an app starts.
Responding to actions
If the application starts up from a "terminated" state with a shortcut click, the shortcut can be found in:
If the application was already running and a shortcut was clicked, the application will fire Device.Info.AppActions.Changed
Clicking a shortcut on a Windows desktop app will by default open a new Window. Only the new window will receive the AppActionChanged event.
Last updated