LauncherApps.GetApplicationInfo(String, PackageInfoFlags, UserHandle) Method

Definition

Returns ApplicationInfo about an application installed for a specific user profile.

[Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_ILandroid_os_UserHandle_Handler", ApiSince=26)]
public virtual Android.Content.PM.ApplicationInfo? GetApplicationInfo (string packageName, Android.Content.PM.PackageInfoFlags flags, Android.OS.UserHandle user);
[<Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_ILandroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member GetApplicationInfo : string * Android.Content.PM.PackageInfoFlags * Android.OS.UserHandle -> Android.Content.PM.ApplicationInfo
override this.GetApplicationInfo : string * Android.Content.PM.PackageInfoFlags * Android.OS.UserHandle -> Android.Content.PM.ApplicationInfo

Parameters

packageName
String

The package name of the application

flags
PackageInfoFlags

Additional option flags PackageManager#getApplicationInfo

user
UserHandle

The UserHandle of the profile.

Returns

ApplicationInfo containing information about the package. Returns null if the package isn't installed for the given profile, or the profile isn't enabled.

Attributes

Remarks

Returns ApplicationInfo about an application installed for a specific user profile.

Java documentation for android.content.pm.LauncherApps.getApplicationInfo(java.lang.String, int, android.os.UserHandle).

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