You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
18 lines
371 B
Kotlin
18 lines
371 B
Kotlin
package com.topjohnwu.magisk.arch
|
|
|
|
import android.os.Handler
|
|
import androidx.core.os.postDelayed
|
|
import com.topjohnwu.superuser.internal.UiThreadHandler
|
|
|
|
interface Queryable {
|
|
|
|
val queryDelay: Long
|
|
val queryHandler: Handler get() = UiThreadHandler.handler
|
|
|
|
fun submitQuery() {
|
|
queryHandler.postDelayed(queryDelay) { query() }
|
|
}
|
|
|
|
fun query()
|
|
}
|