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(
    providerPackageName: String,
    updates: List<UpdateInfo>,
    lastCheckTimeMillis: Long
)

Public functions

open Int
open operator Boolean
equals(other: Any?)
open Int
open String
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 UpdateInfo objects representing available updates found during this check.

Public companion properties

Public constructors

UpdateCheckResult

Added in 1.1.0-alpha01
UpdateCheckResult(
    providerPackageName: String,
    updates: List<UpdateInfo>,
    lastCheckTimeMillis: Long
)

Public functions

describeContents

Added in 1.1.0-alpha01
open fun describeContents(): Int

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

writeToParcel

Added in 1.1.0-alpha01
open fun writeToParcel(parcel: Parcel, flags: Int): Unit

Public properties

lastCheckTimeMillis

Added in 1.1.0-alpha01
val lastCheckTimeMillisLong

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

Added in 1.1.0-alpha01
val providerPackageNameString

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

Added in 1.1.0-alpha01
val updatesList<UpdateInfo>

The list of UpdateInfo objects representing available updates found during this check.