Package com.blukii.sdk.config
Interface FirmwareUpdateListener
public interface FirmwareUpdateListener
Listener for function
Blukii.updateFirmware(FirmwareUpdateListener)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Is called when asynchronous functionBlukii.updateFirmware(FirmwareUpdateListener)
is finished.boolean
onProgress
(FirmwareUpdateProgress progress, Object data) Is called if update progress step is started.
-
Method Details
-
onFirmwareUpdateDone
Is called when asynchronous functionBlukii.updateFirmware(FirmwareUpdateListener)
is finished.It returns the update success or error status and a list of updated
BlukiiAction
s and errors.- Parameters:
status
- success or error state
-
onProgress
Is called if update progress step is started.Firmware update runs through several steps. At the beginning of each step the callback is called.
Some of these provide additional information:
FirmwareUpdateProgress.PrepareDevice
: source firmware version (String)FirmwareUpdateProgress.IdentifyImage
: target firmware version (String)FirmwareUpdateProgress.TransferImage
: transfer progress in % (int)
- Parameters:
progress
- starting progress stepdata
- progress step dependent data- Returns:
- true, if firmware update should be canceled
-