Builder
Builder class for ShortcutInfoCompat objects.
Constructors
Link copied to clipboard
Functions
Link copied to clipboard
Associates a shortcut with a capability without any parameters.
open fun addCapabilityBinding(@NonNull capability: String, @NonNull parameter: String, @NonNull parameterValues: List<String>): ShortcutInfoCompat.Builder
Associates a shortcut with a capability, and a parameter of that capability.
Link copied to clipboard
Creates a ShortcutInfoCompat instance.
Link copied to clipboard
Sets the target activity.
Link copied to clipboard
Badges the icon before passing it over to the Launcher.
Link copied to clipboard
Sets categories for a shortcut.
Link copied to clipboard
Sets the message that should be shown when the user attempts to start a shortcut that is disabled.
Link copied to clipboard
Sets which surfaces a shortcut will be excluded from.
Link copied to clipboard
Extras that the app can set for any purpose.
Link copied to clipboard
Sets an icon of a shortcut.
Link copied to clipboard
Sets multiple intents instead of a single intent, in order to launch an activity with other activities in back stack.
Link copied to clipboard
Sets the corresponding fields indicating this shortcut is aimed for conversation.
Link copied to clipboard
Sets the LocusIdCompat associated with this shortcut.
Link copied to clipboard
Sets the text of a shortcut.
Link copied to clipboard
Sets if a shortcut would be valid even if it has been unpublished/invisible by the app (as a dynamic or pinned shortcut).
Link copied to clipboard
Sets multiple persons instead of a single person.
Link copied to clipboard
Sets rank of a shortcut, which is a non-negative value that's used by the system to sort shortcuts.
Link copied to clipboard
Sets the short title of a shortcut.
Link copied to clipboard
Sets the slice uri for a shortcut.
Link copied to clipboard