IUpgradeManager
interface IUpgradeManager
Description: File upgrade management class
method init
fun init(clientType : UpgradeClientTypeEnum): UpgradeManger
Description: Upgrade service initialization
Input parameters: client type: UpgradeClientTypeEnum
Output parameters: None。
Related parameters: UpgradeManger。
method registerUpgradeProgress
fun registerUpgradeProgress(callback: CommonCallbacks.KeyListener<Int>)
Description: Register the progress callback interface of the upgrade service
Input parameters: callback: The progress callback monitor of device upgrade
Output parameters: None。
Related parameters: KeyListener。
method registerUpgradeResult
fun registerUpgradeResult(callback: CommonCallbacks.KeyListener<UpgradeResultBean>)
Description: Callback interface for the result of registration upgrade service
Input parameters: callback: device upgrade result callback listener
Output parameters: None。
Related parameters: KeyListener,UpgradeResultBean。
method unInit
fun unInit()
Description: Upgrade service deinitialization
Input parameters: None。
Output parameters: None。
Related parameters: None。
method performSystemUpgrade
fun performSystemUpgrade(file: File)
Description: Execute system OTA upgrade
Input parameters: file: OTA upgrade file
Output parameters: None。
Related parameters: None。