[6.9.0]增加OTA是否处于升级状态接口

This commit is contained in:
xuxinchao
2024-12-30 16:10:09 +08:00
parent 6b6e9fa8e3
commit 00c22b5767
2 changed files with 17 additions and 0 deletions

View File

@@ -28,4 +28,10 @@ interface IOTAListener {
*/
fun onOtaStatus(status: SsmInfo.OtaStatus){}
/**
* OTA是否处于升级状态
* @param status true 处于升级状态 false 未处于升级状态
*/
fun onOtaDownloadStatus(status: Boolean){}
}

View File

@@ -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)
}
}
}