MockPackageManager.GetApplicationInfo(String, PackageInfoFlags) Method

Definition

Retrieve all of the information we know about a particular package/application.

[Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_IHandler")]
public override Android.Content.PM.ApplicationInfo? GetApplicationInfo (string? packageName, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_IHandler")>]
override this.GetApplicationInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ApplicationInfo

Parameters

packageName
String

The full name (i.e. com.google.apps.contacts) of an application.

flags
PackageInfoFlags

Additional option flags. Use any combination of MetaData, SharedLibraryFiles, UninstalledPackages to modify the data returned.

Returns

Attributes

Exceptions

Remarks

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