PermissionHelper

Runtime-permission checks shared by every module's provider object. The SDK never requests permissions (the host app owns its permission UX) — it only inspects what has already been granted, so a tool can decline gracefully.

Functions

Link copied to clipboard
fun hasPermissions(context: Context, permissions: List<String>): Boolean

True only if every permission in permissions is currently granted to the app.

Link copied to clipboard
fun missingPermissions(context: Context, permissions: List<String>): List<String>

The subset of permissions not currently granted — empty when all are held.