ShortcutSpec
Properties
Link copied to clipboard
Launcher categories, e.g. ShortcutInfo.SHORTCUT_CATEGORY_CONVERSATION.
Link copied to clipboard
Message shown when the user taps this shortcut while it is disabled.
Link copied to clipboard
Icon from a drawable resource. Ignored when icon or adaptiveIcon is also called.
Link copied to clipboard
Marks the shortcut as long-lived, allowing the system to cache it (for example for sharing targets and conversation notifications).
Link copied to clipboard
Longer label shown when the launcher has room for it.
Link copied to clipboard
Short label shown under the shortcut icon. Required.
Functions
Link copied to clipboard
Link copied to clipboard
Icon from an arbitrary IconCompat; wins over the icon resource.
Link copied to clipboard
Adds a pre-built launch intent. The intent must have an action set.
Adds a launch intent built with the IntentSpec DSL. Repeat to build a back stack; the last intent added is the one launched.