FirmwareManager

@objc(GSFirmwareManager)
public protocol FirmwareManager : Facility

Facility that provides global management of firmware updates.

FirmwareManager allows to:

  • Query up-to-date firmware information from remote update server; note that the application is only allowed to query update once every hour.
  • list firmware updates for all supported device models, both remotely available (that need to be downloaded from remote update server) and locally available, that are present on the device’s internal storage and are ready to be used for device update.
  • Download remote firmware update file from remote update server and archive them on device’s internal storage for later use.
  • Delete locally downloaded firmware update files.

This facility can be obtained using:

groundSdk.getFacility(Facilities.firmwareManager)
  • Whether a remote update information query is currently in progress.

    Declaration

    Swift

    var isQueryingRemoteUpdates: Bool { get }
  • All available firmware updates.

    Declaration

    Swift

    var firmwares: [FirmwareManagerEntry] { get }
  • Requests to update information from remote servers.

    Declaration

    Swift

    @discardableResult
    func queryRemoteUpdates() -> Bool

    Return Value

    true if a request has been sent (or is already in progress), false otherwise. Note: This flag corresponds to the isQueryingRemoteUpdates flag.