[6.9.0]增加OTA是否处于升级状态接口
This commit is contained in:
@@ -28,4 +28,10 @@ interface IOTAListener {
|
||||
*/
|
||||
fun onOtaStatus(status: SsmInfo.OtaStatus){}
|
||||
|
||||
/**
|
||||
* OTA是否处于升级状态
|
||||
* @param status true 处于升级状态 false 未处于升级状态
|
||||
*/
|
||||
fun onOtaDownloadStatus(status: Boolean){}
|
||||
|
||||
}
|
||||
@@ -45,4 +45,15 @@ object CallerOTAManager: CallerBase<IOTAListener>() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* OTA是否处于升级状态
|
||||
* @param status true 处于升级状态 false 未处于升级状态
|
||||
*/
|
||||
fun invokeOtaDownloadStatus(status: Boolean){
|
||||
M_LISTENERS.forEach{
|
||||
val listener = it.value
|
||||
listener.onOtaDownloadStatus(status)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user