Språk

PackageStats Constructors

Definition

Overloads

Name Description
PackageStats(PackageStats)

Creates a statistics record using values from another package-statistics record.

PackageStats(Parcel)

Restores package statistics from a parcel.

PackageStats(String)

Creates a statistics record for the named package and the calling process's user.

PackageStats(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PackageStats(PackageStats)

Creates a statistics record using values from another package-statistics record.

[Android.Runtime.Register(".ctor", "(Landroid/content/pm/PackageStats;)V", "")]
public PackageStats(Android.Content.PM.PackageStats? pStats);
[<Android.Runtime.Register(".ctor", "(Landroid/content/pm/PackageStats;)V", "")>]
new Android.Content.PM.PackageStats : Android.Content.PM.PackageStats -> Android.Content.PM.PackageStats

Parameters

pStats
PackageStats

The package statistics whose identity and size fields are copied.

Attributes

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

PackageStats(Parcel)

Restores package statistics from a parcel.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public PackageStats(Android.OS.Parcel? source);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Content.PM.PackageStats : Android.OS.Parcel -> Android.Content.PM.PackageStats

Parameters

source
Parcel

The parcel containing the package name, user identifier, and size fields.

Attributes

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

PackageStats(String)

Creates a statistics record for the named package and the calling process's user.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public PackageStats(string? pkgName);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Content.PM.PackageStats : string -> Android.Content.PM.PackageStats

Parameters

pkgName
String

The package name stored in the new statistics record.

Attributes

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

PackageStats(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PackageStats(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.PM.PackageStats : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.PM.PackageStats

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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