RegionState

class RegionState(val installState: RegionInstallState, val updateState: RegionUpdateState?, val dataInfo: RegionDataInfo?)

The state of an updatable Region.

This combines:

  • what is already installed on the device (installState)

  • whether newer data can be downloaded and the estimated size (updateState)

  • details about the installed data when available (dataInfo)

UI guidance

A typical UI can be derived from this object as follows:

Note: Only updatable Regions have a RegionState.

Constructors

Link copied to clipboard
constructor(installState: RegionInstallState, updateState: RegionUpdateState?, dataInfo: RegionDataInfo?)

Properties

Link copied to clipboard

Information about the installed region data.

Link copied to clipboard

The installation state of the region.

Link copied to clipboard

The update state of the region.

Functions

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