PackageInfo Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overall information about the contents of a package.
[Android.Runtime.Register("android/content/pm/PackageInfo", DoNotGenerateAcw=true)]
public class PackageInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/content/pm/PackageInfo", DoNotGenerateAcw=true)>]
type PackageInfo = class
inherit Object
interface IParcelable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Overall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest.xml.
Java documentation for android.content.pm.PackageInfo
.
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.
Constructors
PackageInfo() | |
PackageInfo(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
RequestedPermissionGranted |
Obsolete.
Flag for |
RequestedPermissionImplicit |
Obsolete.
Flag for |
RequestedPermissionNeverForLocation |
Obsolete.
Flag for |
RequestedPermissionRequired |
Obsolete.
Flag for |
Properties
Activities |
Array of all |
ApplicationInfo |
Information collected from the <application> tag, or null if there was none. |
Attributions |
Array of all |
BaseRevisionCode |
The revision number of the base APK for this package, as specified by the
<manifest> tag's
|
Class |
Returns the runtime class of this |
ConfigPreferences |
Application specified preferred configuration
|
Creator | |
FeatureGroups |
Groups of features that this application has requested. |
FirstInstallTime |
The time at which the app was first installed. |
Gids |
All kernel group-IDs that have been assigned to this package. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
InstallLocation |
The install location requested by the package. |
Instrumentation |
Array of all |
IsApex |
Whether the package is an APEX package. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
LastUpdateTime |
The time at which the app was last updated. |
LongVersionCode |
Return |
PackageName |
The name of this package. |
PeerReference | (Inherited from Object) |
Permissions |
Array of all |
Providers |
Array of all |
Receivers |
Array of all |
ReqFeatures |
Features that this application has requested. |
RequestedPermissions |
Array of all |
RequestedPermissionsFlags |
Array of flags of all |
Services |
Array of all |
SharedUserId |
The shared user ID name of this package, as specified by the <manifest>
tag's |
SharedUserLabel |
The shared user ID label of this package, as specified by the <manifest>
tag's |
Signatures |
Array of all signatures read from the package file. |
SigningInfo |
Signing information read from the package file, potentially including past signing certificates no longer used after signing certificate rotation. |
SplitNames |
The names of any installed split APKs for this package. |
SplitRevisionCodes |
The revision number of any split APKs for this package, as specified by
the <manifest> tag's
|
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
VersionCode |
This member is deprecated. |
VersionName |
The version name of this package, as specified by the <manifest>
tag's |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
DescribeContents() |
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
WriteToParcel(Parcel, ParcelableWriteFlags) |
Flatten this object in to a Parcel. |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |