requestPinShortcut

Request to create a pinned shortcut.

On API <= 25 it creates a legacy shortcut with the provided icon, label and intent. For newer APIs it will create a android.content.pm.ShortcutInfo object which can be updated by the app.

Use getIntentSender to create a IntentSender.

Return

true if the launcher supports this feature

Parameters

context

context to use for the request.

shortcut

new shortcut to pin

callback

if not null, this intent will be sent when the shortcut is pinned

See also