INNER CODE UNIT · Kotlin
onScopeRequestFailed
1812z/HyperIsland · android/app/src/main/kotlin/io/github/hyperisland/XposedPrefsSyncApp.kt:140
override fun onScopeRequestFailed(message: String) {
Log.w(TAG, "scope request failed: $message")
onResult(Result.failure(IllegalStateException(message)))
}
})
}
fun getCurrentScope(): List<String> {
val service = xposedService ?: throw IllegalStateException("XposedService is not ready")
return service.scope
}
fun getFrameworkInfo(): Map<String, Any> {
val service = xposedService ?: throw IllegalStateException("XposedService is not ready")
return mapOf(
"apiVersion" to service.apiVersion,
"frameworkName" to service.frameworkName,
"frameworkVersion" to service.frameworkVersion,