ShortcutInfoCompat.Builder

public class ShortcutInfoCompat.Builder


Builder class for ShortcutInfoCompat objects.

Summary

Public constructors

Public methods

@NonNull ShortcutInfoCompat.Builder

Associates a shortcut with a capability without any parameters.

@NonNull ShortcutInfoCompat.Builder
addCapabilityBinding(
    @NonNull String capability,
    @NonNull String parameter,
    @NonNull List<String> parameterValues
)

Associates a shortcut with a capability, and a parameter of that capability.

@NonNull ShortcutInfoCompat

Creates a ShortcutInfoCompat instance.

@NonNull ShortcutInfoCompat.Builder

Sets the target activity.

@NonNull ShortcutInfoCompat.Builder

Badges the icon before passing it over to the Launcher.

@NonNull ShortcutInfoCompat.Builder

Sets categories for a shortcut.

@NonNull ShortcutInfoCompat.Builder

Sets the message that should be shown when the user attempts to start a shortcut that is disabled.

@NonNull ShortcutInfoCompat.Builder
setExcludedSurfaces(int surfaces)

Sets which surfaces a shortcut will be excluded from.

@NonNull ShortcutInfoCompat.Builder

Extras that the app can set for any purpose.

@NonNull