Language

LauncherApps.ShortcutQuery.SetPackage(String) Method

Definition

If non-null, returns only shortcuts from the package.

[Android.Runtime.Register("setPackage", "(Ljava/lang/String;)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetPackage_Ljava_lang_String_Handler", ApiSince=25)]
public virtual Android.Content.PM.LauncherApps.ShortcutQuery? SetPackage(string? packageName);
[<Android.Runtime.Register("setPackage", "(Ljava/lang/String;)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetPackage_Ljava_lang_String_Handler", ApiSince=25)>]
abstract member SetPackage : string -> Android.Content.PM.LauncherApps.ShortcutQuery
override this.SetPackage : string -> Android.Content.PM.LauncherApps.ShortcutQuery

Parameters

packageName
String

Returns

Attributes

Remarks

If non-null, returns only shortcuts from the package.

Android reference for android.content.pm.LauncherApps.ShortcutQuery.setPackage.

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