# UpdateCheckResult

Artifact: [androidx.security:security-state](https://developer.android.com/jetpack/androidx/releases/security) [View Source](https://cs.android.com/search?q=file:androidx/security/state/UpdateCheckResult.kt+class:androidx.security.state.UpdateCheckResult) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

*** ** * ** ***


```
class UpdateCheckResult : Parcelable
```

<br />

*** ** * ** ***

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 |
|---|---|
| `https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult>` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#CREATOR()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#UpdateCheckResult(kotlin.String,kotlin.collections.List,kotlin.Long)( providerPackageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, updates: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/security/state/UpdateInfo>, lastCheckTimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#describeContents()()` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#toString()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#writeToParcel(android.os.Parcel,kotlin.Int)(parcel: https://developer.android.com/reference/android/os/Parcel.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#lastCheckTimeMillis()` The timestamp of the last successful synchronization with the backend, in milliseconds since the epoch. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#providerPackageName()` The package name of the application that provided these update results. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/security/state/UpdateInfo>` | `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#updates()` The list of `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateInfo` objects representing available updates found during this check. |

## Public companion properties

### CREATOR

```
val CREATOR: Parcelable.Creator<UpdateCheckResult>
```

## Public constructors

### UpdateCheckResult

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

```
UpdateCheckResult(
    providerPackageName: String,
    updates: List<UpdateInfo>,
    lastCheckTimeMillis: Long
)
```

## Public functions

### describeContents

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

```
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](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

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

## Public properties

### lastCheckTimeMillis

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

```
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 `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateCheckResult#(kotlin.String,kotlin.collections.List,kotlin.Long)` 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](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

```
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

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/security#1.1.0)

```
val updates: List<UpdateInfo>
```

The list of `https://developer.android.com/reference/kotlin/androidx/security/state/UpdateInfo` objects representing available updates found during this check.