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

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.