ru.dgis.sdk.update.PackageInfo | Android SDK | Urbi Documentation
Android SDK

PackageInfo

Package information. See IPackage.

PackageInfo(
	name: String,
	installed: Boolean = false,
	incomplete: Boolean = true,
	preinstalled: Boolean = false,
	compatible: Boolean = false,
	hasUpdate: Boolean = false,
	error: PackageInfoError?,
	updateStatus: PackageUpdateStatus = PackageUpdateStatus.NOT_AVAILABLE,
	finalSizeOnDisk: Long? = null,
	currentSizeOnDisk: Long = 0
)

Package information. See IPackage.

Parameters
name
installed
incomplete
preinstalled
compatible
hasUpdate
error
updateStatus
finalSizeOnDisk
currentSizeOnDisk
Returns
Properties

Localized package name.

Installation flag - true, if the package was selected for installation.

Installation pending flag - true, if there is no fully loaded version of the package (possibly incompatible with the current SDK version).

Flag for pre-installed packages. Pre-installed packages are always installed and fully loaded, and cannot be removed.

Compatibility flag - true, if the downloaded package is compatible with the current SDK version.

Indicator of an update availability - true, if there is an update for the downloaded package. It is possible, that during the process of updating to a new version, an even newer version of the package became available on the server. In this case, the value is true both during the update and upon completion.

Error occurred while trying to load and/or install a package, or null if there is no error.

Package update status.

Size of the disk space that the territory takes after installation, in bytes. Uninitialized value indicates that the territory does not contain files (this information is obtained from a preinstalled status file that does not contain a list of territory files).

Size of the disk space that currently installed territory files take, in bytes