Aracılığıyla paylaş


PackageManager.GetPackageArchiveInfo Method

Definition

Overloads

GetPackageArchiveInfo(String, PackageInfoFlags)

Retrieve overall information about an application package defined in a package archive file

        Use <code data-dev-comment-type="c">#getPackageArchiveInfo(String, PackageInfoFlags)</code> when long flags are needed.
GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags)

GetPackageArchiveInfo(String, PackageInfoFlags)

Retrieve overall information about an application package defined in a package archive file

        Use <code data-dev-comment-type="c">#getPackageArchiveInfo(String, PackageInfoFlags)</code> when long flags are needed.
[Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")]
public virtual Android.Content.PM.PackageInfo? GetPackageArchiveInfo (string archiveFilePath, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_IHandler")>]
abstract member GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo
override this.GetPackageArchiveInfo : string * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.PackageInfo

Parameters

archiveFilePath
String

The path to the archive file

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

A PackageInfo object containing information about the package archive. If the package could not be parsed, returns null.

Attributes

Remarks

Retrieve overall information about an application package defined in a package archive file

Use #getPackageArchiveInfo(String, PackageInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.getPackageArchiveInfo(java.lang.String, int).

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

GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags)

[Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)]
public virtual Android.Content.PM.PackageInfo? GetPackageArchiveInfo (string archiveFilePath, Android.Content.PM.PackageManager.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackageArchiveInfo", "(Ljava/lang/String;Landroid/content/pm/PackageManager$PackageInfoFlags;)Landroid/content/pm/PackageInfo;", "GetGetPackageArchiveInfo_Ljava_lang_String_Landroid_content_pm_PackageManager_PackageInfoFlags_Handler", ApiSince=33)>]
abstract member GetPackageArchiveInfo : string * Android.Content.PM.PackageManager.PackageInfoFlags -> Android.Content.PM.PackageInfo
override this.GetPackageArchiveInfo : string * Android.Content.PM.PackageManager.PackageInfoFlags -> Android.Content.PM.PackageInfo

Parameters

archiveFilePath
String

Returns

Attributes

Applies to