Share via


ShortcutInfo.Intent Property

Definition

Returns the intent that is executed when the user selects this shortcut.

public Android.Content.Intent? Intent { [Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "", ApiSince=25)>]
member this.Intent : Android.Content.Intent

Property Value

Attributes

Remarks

Returns the intent that is executed when the user selects this shortcut. If setIntents() was used, then return the last intent in the array.

Launcher apps <b>cannot</b> see the intent. If a ShortcutInfo is obtained via LauncherApps, then this method will always return null. Launchers can only start a shortcut intent with LauncherApps#startShortcut.

Java documentation for android.content.pm.ShortcutInfo.getIntent().

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