class UpdateInfo : Parcelable


Represents information about an available update for a component.

Summary

Nested types

Builder class for creating an instance of UpdateInfo.

Public companion properties

Parcelable.Creator<UpdateInfo>

Public constructors

UpdateInfo(
    component: String,
    securityPatchLevel: String,
    publishedDateMillis: Long,
    lastCheckTimeMillis: Long
)

Public functions

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

Compares this UpdateInfo with another object for equality.

open Int

Provides a hash code for an UpdateInfo object.

open String

Returns a string representation of the update information.

open Unit
writeToParcel(parcel: Parcel, flags: Int)

Public properties

String

Component for which the update information is provided.

Long

The timestamp when this specific update was checked or discovered, in milliseconds since the epoch.

Long

Timestamp when the available update was published, in milliseconds since the epoch.

String

Security patch level of the available update ready to be applied by the reporting client.

Public companion properties

Public constructors

UpdateInfo

Added in 1.1.0-alpha01
UpdateInfo(
    component: String,
    securityPatchLevel: String,
    publishedDateMillis: Long,
    lastCheckTimeMillis: Long
)

Public functions

describeContents

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

equals

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

Compares this UpdateInfo with another object for equality.

Parameters
other: Any?

The object to compare with this instance.

Returns
Boolean

true if the other object is an instance of UpdateInfo and all properties match, false otherwise.

hashCode

open fun hashCode(): Int

Provides a hash code for an UpdateInfo object.

Returns
Int

A hash code produced by the properties of the update info.

toString

open fun toString(): String

Returns a string representation of the update information.

Returns
String

A string that describes the update details.

writeToParcel

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

Public properties

component

Added in 1.1.0-alpha01
val componentString

Component for which the update information is provided.

The value should be one of the constants allowed by SecurityPatchState.Component, such as SecurityPatchState.COMPONENT_SYSTEM.

lastCheckTimeMillis

Added in 1.1.0-alpha01
val lastCheckTimeMillisLong

The timestamp when this specific update was checked or discovered, in milliseconds since the epoch.

This timestamp allows the system to track the freshness of individual update records, which is useful when different components are checked on different schedules.

publishedDateMillis

Added in 1.1.0-alpha01
val publishedDateMillisLong

Timestamp when the available update was published, in milliseconds since the epoch.

securityPatchLevel

Added in 1.1.0-alpha01
val securityPatchLevelString

Security patch level of the available update ready to be applied by the reporting client. Use SecurityPatchState.getComponentSecurityPatchLevel method to get encapsulated value.