Package 

Object PermissionManager.Companion

    • Method Detail

      • androidPermission

         final String androidPermission(String type, Integer sdkInt)

        The Android runtime permission string that MUST be granted for type, given sdkInt. Returns null for types that need no runtime permission on this API level:

        • att — no Android equivalent (auto-granted no-op).

        • notification below API 33 — auto-granted (POST_NOTIFICATIONS didn't exist).

        • unknown/unsupported types.

      • isBlockedAfterDenial

         final Boolean isBlockedAfterDenial(Boolean granted, Boolean shouldShowRationale)

        Sticky-denied detection is post-request only: checkSelfPermission == DENIED is identical for never-asked vs permanently-denied. After a launch returns denied, !shouldShowRationale means the OS won't prompt again → blocked (present the settings fallback). Pure + testable.