PackageInfo | iOS SDK | 2GIS Documentation

PackageInfo

Package information. See IPackage.

public init(
    name: String,
    installed: Bool = false,
    incomplete: Bool = false,
    preinstalled: Bool = false,
    compatible: Bool = true,
    hasUpdate: Bool = false,
    updateStatus: PackageUpdateStatus
)
Parameters
name
installed
incomplete
preinstalled
compatible
hasUpdate
updateStatus
Properties

Localized name of the package.

Installation sign - true if the package has been selected for installation.

Sign of incomplete installation - true if there is no fully downloaded version of the package (possibly incompatible with the current SDK version).

Sign of preinstalled packages. Preinstalled packages are always installed and fully loaded, and cannot be removed.

Compatibility sign - true in case the downloaded package is compatible with the current SDK version.

The update availability sign is true in case there is an update for the downloaded package. It is possible situation, when during update process to new version even newer version of the package became available on the server. In this case the value will be true both during and after the upgrade.

Package upgrade status.