UpdateId

@IviExperimental(reasons = [])
@Serializable(with = UpdateIdSerializer::class)
data class UpdateId(val updateComponentId: UpdateComponentId, val versionInfo: VersionInfo) : Parcelable

Used to uniquely identify the update.

Constructors

Link copied to clipboard
constructor(updateComponentId: UpdateComponentId, versionName: String)

Constructs an UpdateId with a VersionInfo without VersionInfo.versionCode.

constructor(updateComponentId: UpdateComponentId, versionInfo: VersionInfo)

Properties

Link copied to clipboard

The ID of the component to be updated.

Link copied to clipboard

Version of the component that will be installed by this update.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

An UpdateId is equals to another UpdateId even if one of them does not have a VersionInfo.versionCode. To keep the logic simple, the VersionInfo.versionCode values are not taken into account in equals and hashCode.

Link copied to clipboard
open override fun hashCode(): Int

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)