Executor

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onStateChanged(prevState: State, newState: State)
Called when the firmware upgrade changes state.
Link copied to clipboard
open fun onUpgradeCanceled(state: State)
Called when the firmware upgrade has been canceled using the cancel method.
Link copied to clipboard
Called when the firmware upgrade has succeeded.
Link copied to clipboard
open fun onUpgradeFailed(state: State, error: McuMgrException)
Called when the firmware upgrade has failed.
Link copied to clipboard
Called when the FirmwareUpgradeManager has started.
Link copied to clipboard
open fun onUploadProgressChanged(bytesSent: Int, imageSize: Int, timestamp: Long)
Called when the upload state progress has changed.
Link copied to clipboard
open fun setCallback(@Nullable callback: @Nullable FirmwareUpgradeCallback<State>)
Link copied to clipboard
open fun setRunOnIUThread(runOnIUThread: Boolean)