Package com.creditcall.chipdnamobile

# Interface IFirmwareUpdateListener

public interface IFirmwareUpdateListener
This interface is used to listen to updates when a firmware update is being performed. Set observer before calling method `ChipDnaMobile.connectAndConfigure(com.creditcall.chipdnamobile.Parameters)`.

Author:
  Creditcall Ltd

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onFirmwareUpdate(Parameters parameters)`
  Invoked during firmware updates via `ChipDnaMobile.connectAndConfigure(com.creditcall.chipdnamobile.Parameters)` and `ChipDnaMobile.requestTmsUpdate(com.creditcall.chipdnamobile.Parameters)`.

- ## Method Details

  - ### onFirmwareUpdate

    void onFirmwareUpdate(Parameters parameters)
    Invoked during firmware updates via `ChipDnaMobile.connectAndConfigure(com.creditcall.chipdnamobile.Parameters)` and `ChipDnaMobile.requestTmsUpdate(com.creditcall.chipdnamobile.Parameters)`.

    Currently events for firmware updates are only supported on Miura M020, Miura M021 and IDTech VP3350.

    Parameters:
      `parameters` - `Parameters` collection which can contain:

      `ParameterKeys.FirmwareUpdateAvailable` When present with the value `ParameterValues.TRUE`, indicates that a firmware update is available for the currently configured terminal.

      `ParameterKeys.FirmwareUpdateStatus` An XML representation of a `FirmwareUpdateStatus` object. {@link ChipDnaMobileSerializer#deserializeFirmwareUpdateStatus:} can be used to retrieve an object.

      `ParameterKeys.FirmwareDownloadPercentage` A value from 0 to 100 which shows the percentage of the firmware downloaded to the PIN pad.

      `ParameterKeys.FirmwareFile` The name of the file being downloaded to the PIN pad.

      `ParameterKeys.FirmwareUpdate` A `FirmwareUpdates` providing an update on the firmware update process.