[3.4.0] add func of setting of tacip
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user