UpdateCheckResult
class UpdateCheckResult : Parcelable
Container for the result of a security update check from a specific provider.
This class encapsulates the list of available updates along with metadata about the source and freshness of the data. It is returned by the IUpdateInfoService.listAvailableUpdates method.
Summary
Public companion properties |
|
|---|---|
Parcelable.Creator<UpdateCheckResult> |
Public constructors |
|---|
UpdateCheckResult( |
Public functions |
|
|---|---|
open Int |
|
open operator Boolean |
|
open Int |
hashCode() |
open String |
toString() |
open Unit |
writeToParcel(parcel: Parcel, flags: Int) |
Public properties |
|
|---|---|
Long |
The timestamp of the last successful synchronization with the backend, in milliseconds since the epoch. |
String |
The package name of the application that provided these update results. |
List<UpdateInfo> |
The list of |
Public companion properties
Public constructors
UpdateCheckResult
UpdateCheckResult(
providerPackageName: String,
updates: List<UpdateInfo>,
lastCheckTimeMillis: Long
)
Public functions
Public properties
lastCheckTimeMillis
val lastCheckTimeMillis: Long
The timestamp of the last successful synchronization with the backend, in milliseconds since the epoch.
This field is critical for clients to understand the freshness of the result, especially when updates is empty. It allows the UI to display messages like "Last checked: 5 minutes ago" versus "Last checked: Yesterday".
providerPackageName
val providerPackageName: String
The package name of the application that provided these update results.
This field identifies the authoritative source of the update data (e.g., "com.google.android.gms" for System Updates).
updates
val updates: List<UpdateInfo>
The list of UpdateInfo objects representing available updates found during this check.