共用方式為


PackageManager.GetChangedPackages(Int32) Method

Definition

Returns the names of the packages that have been changed [eg.

[Android.Runtime.Register("getChangedPackages", "(I)Landroid/content/pm/ChangedPackages;", "GetGetChangedPackages_IHandler", ApiSince=26)]
public abstract Android.Content.PM.ChangedPackages? GetChangedPackages (int sequenceNumber);
[<Android.Runtime.Register("getChangedPackages", "(I)Landroid/content/pm/ChangedPackages;", "GetGetChangedPackages_IHandler", ApiSince=26)>]
abstract member GetChangedPackages : int -> Android.Content.PM.ChangedPackages

Parameters

sequenceNumber
Int32

The first sequence number for which to retrieve package changes.

Returns

Attributes

Remarks

Returns the names of the packages that have been changed [eg. added, removed or updated] since the given sequence number.

If no packages have been changed, returns null.

The sequence number starts at 0 and is reset every boot.

Java documentation for android.content.pm.PackageManager.getChangedPackages(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