Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PermissionInfoCompat

class PermissionInfoCompat
kotlin.Any
   ↳ androidx.core.content.pm.PermissionInfoCompat

Helper for accessing features in PermissionInfo.

Summary

Public methods

static Int
getProtection(@NonNull permissionInfo: PermissionInfo)

Return the base permission type of a PermissionInfo.

static Int
getProtectionFlags(@NonNull permissionInfo: PermissionInfo)

Return the additional protection flags of a PermissionInfo.

Public methods

getProtection

static fun getProtection(@NonNull permissionInfo: PermissionInfo): Int

Return the base permission type of a PermissionInfo.

getProtectionFlags

static fun getProtectionFlags(@NonNull permissionInfo: PermissionInfo): Int

Return the additional protection flags of a PermissionInfo.