Compartilhar via


LauncherApps.ActionConfirmPinShortcut Field

Definition

Activity Action: For the default launcher to show the confirmation dialog to create a pinned shortcut.

[Android.Runtime.Register("ACTION_CONFIRM_PIN_SHORTCUT", ApiSince=26)]
public const string ActionConfirmPinShortcut;
[<Android.Runtime.Register("ACTION_CONFIRM_PIN_SHORTCUT", ApiSince=26)>]
val mutable ActionConfirmPinShortcut : string

Field Value

Attributes

Remarks

Activity Action: For the default launcher to show the confirmation dialog to create a pinned shortcut.

See the ShortcutManager javadoc for details.

Use #getPinItemRequest(Intent) to get a PinItemRequest object, and call PinItemRequest#accept(Bundle) if the user accepts. If the user doesn't accept, no further action is required.

Java documentation for android.content.pm.LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to