PackageInfo | iOS SDK | Urbi Documentation
iOS SDK

PackageInfo

Package information. See IPackage.

public init(
    name: String,
    installed: Bool = false,
    incomplete: Bool = true,
    preinstalled: Bool = false,
    compatible: Bool = false,
    hasUpdate: Bool = false,
    error: PackageInfoError?,
    updateStatus: PackageUpdateStatus = PackageUpdateStatus.notAvailable,
    finalSizeOnDisk: UInt64? = nil,
    currentSizeOnDisk: UInt64 = 0
)
Parameters
name
installed
incomplete
preinstalled
compatible
hasUpdate
error
updateStatus
finalSizeOnDisk
currentSizeOnDisk
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.

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.

Error that occurs during an attempt to download and/or install a package. If no error occurs, nil is returned.

Package upgrade 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