ru.dgis.sdk.update.PackageInfo | Android SDK | 2GIS 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
)

Package information. See IPackage.

Parameters
name
installed
incomplete
preinstalled
compatible
hasUpdate
error
updateStatus
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.