PinnedShortcutSpec
A ShortcutSpec for ShortcutsScope.pinned requests, adding the pin-result callback.
Properties
Launcher categories, e.g. ShortcutInfo.SHORTCUT_CATEGORY_CONVERSATION.
Message shown when the user taps this shortcut while it is disabled.
Icon from a drawable resource. Ignored when icon or adaptiveIcon is also called.
Marks the shortcut as long-lived, allowing the system to cache it (for example for sharing targets and conversation notifications).
Longer label shown when the launcher has room for it.
Notified once the user confirms pinning. Create it with PendingIntent.getBroadcast and PendingIntent.FLAG_IMMUTABLE; the system fires its PendingIntent.getIntentSender on confirmation.
Short label shown under the shortcut icon. Required.
Functions
Icon from an arbitrary IconCompat; wins over the icon resource.
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.