AndroidFirmwareUpdateManager

class AndroidFirmwareUpdateManager(radioPrefs: RadioPrefs, nordicDfuHandler: NordicDfuHandler, usbUpdateHandler: UsbUpdateHandler, esp32OtaUpdateHandler: Esp32OtaUpdateHandler) : FirmwareUpdateManager(source)

Orchestrates the firmware update process by choosing the correct handler.

Constructors

Link copied to clipboard
constructor(radioPrefs: RadioPrefs, nordicDfuHandler: NordicDfuHandler, usbUpdateHandler: UsbUpdateHandler, esp32OtaUpdateHandler: Esp32OtaUpdateHandler)

Functions

Link copied to clipboard
open override fun dfuProgressFlow(): Flow<DfuInternalState>
Link copied to clipboard
open suspend override fun startUpdate(release: FirmwareRelease, hardware: DeviceHardware, address: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: CommonUri?): String?

Start the update process based on the current connection and hardware.

abstract suspend fun startUpdate(release: ERROR CLASS: Symbol not found for FirmwareRelease, hardware: ERROR CLASS: Symbol not found for DeviceHardware, address: String, updateState: (FirmwareUpdateState) -> Unit, firmwareUri: ERROR CLASS: Symbol not found for CommonUri?? = null): String?