INNER CODE UNIT · Kotlin

onScopeRequestApproved

1812z/HyperIsland · android/app/src/main/kotlin/io/github/hyperisland/XposedPrefsSyncApp.kt:135

            override fun onScopeRequestApproved(scope: List<String>) {
                Log.d(TAG, "scope request approved: $scope")
                onResult(Result.success(scope))
            }

            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> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…