[3.4.0] add func of setting of tacip

This commit is contained in:
zhongchao
2023-07-20 14:12:14 +08:00
parent 52e06ded88
commit 512cdd77b4
18 changed files with 411 additions and 51 deletions

View File

@@ -0,0 +1,25 @@
package com.mogo.eagle.core.function.call.setting
import com.mogo.eagle.core.function.api.setting.IMoGoRequestActivityHandler
import com.mogo.eagle.core.function.call.base.CallerBase
/**
* 仅为了view在操作时无权限时申请比activity启动早的请求 需要统一调度在activity中request
*/
object CallerRequestActivityHandleManager : CallerBase<IMoGoRequestActivityHandler>() {
fun requestPermission(tag: String, permission: String) {
M_LISTENERS.forEach {
val listener = it.value
listener.handleRequestPermission(tag, permission)
}
}
fun requestLight(percent:Float){
M_LISTENERS.forEach {
val listener = it.value
listener.handleRequestLight(percent)
}
}
}