Compartilhar via


LauncherApps.GetShortcutConfigActivityIntent(LauncherActivityInfo) Method

Definition

Returns an intent sender which can be used to start the configure activity for creating custom shortcuts.

[Android.Runtime.Register("getShortcutConfigActivityIntent", "(Landroid/content/pm/LauncherActivityInfo;)Landroid/content/IntentSender;", "GetGetShortcutConfigActivityIntent_Landroid_content_pm_LauncherActivityInfo_Handler", ApiSince=26)]
public virtual Android.Content.IntentSender? GetShortcutConfigActivityIntent (Android.Content.PM.LauncherActivityInfo info);
[<Android.Runtime.Register("getShortcutConfigActivityIntent", "(Landroid/content/pm/LauncherActivityInfo;)Landroid/content/IntentSender;", "GetGetShortcutConfigActivityIntent_Landroid_content_pm_LauncherActivityInfo_Handler", ApiSince=26)>]
abstract member GetShortcutConfigActivityIntent : Android.Content.PM.LauncherActivityInfo -> Android.Content.IntentSender
override this.GetShortcutConfigActivityIntent : Android.Content.PM.LauncherActivityInfo -> Android.Content.IntentSender

Parameters

info
LauncherActivityInfo

a configuration activity returned by #getShortcutConfigActivityList

Returns

Attributes

Remarks

Returns an intent sender which can be used to start the configure activity for creating custom shortcuts. Use this method if the provider is in another profile as you are not allowed to start an activity in another profile.

The caller should receive PinItemRequest in onActivityResult on android.app.Activity#RESULT_OK.

Callers must be allowed to access the shortcut information, as defined in #hasShortcutHostPermission().

Java documentation for android.content.pm.LauncherApps.getShortcutConfigActivityIntent(android.content.pm.LauncherActivityInfo).

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