[6.10.0][Feat]状态栏新增高精地图数据缓存进度

This commit is contained in:
chenfufeng
2025-02-07 16:49:49 +08:00
parent 3e17e9b761
commit be23995d10
11 changed files with 190 additions and 1 deletions

View File

@@ -11,11 +11,14 @@ object CallerMapDevaListenerManager : CallerBase<IMoGoMapDevaProvider>() {
ConcurrentHashMap()
private var filePath: String? = null
private var type: Int = -2
private var progress: Int = 0
override fun doSomeAfterAddListener(tag: String, listener: IMoGoMapDevaProvider) {
filePath?.let {
listener.uploadFile(it)
}
listener.downloadStatus(type, progress)
}
fun invokeUploadLogFile(filePath: String) {
@@ -26,4 +29,11 @@ object CallerMapDevaListenerManager : CallerBase<IMoGoMapDevaProvider>() {
}
}
fun invokeDownloadStatus(type: Int, progress: Int) {
this.type = type
this.progress = progress
M_LISTENERS.forEach {
it.value.downloadStatus(type, progress)
}
}
}