The Developer Preview for Android 11 is now available; test it out and share your feedback.

PermissionInfoCompat

public final class PermissionInfoCompat
extends Object

java.lang.Object
   ↳ androidx.core.content.pm.PermissionInfoCompat


Helper for accessing features in PermissionInfo.

Summary

Public methods

static int getProtection(PermissionInfo permissionInfo)

Return the base permission type of a PermissionInfo.

static int getProtectionFlags(PermissionInfo permissionInfo)

Return the additional protection flags of a PermissionInfo.

Inherited methods

Public methods

getProtection

public static int getProtection (PermissionInfo permissionInfo)

Return the base permission type of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int

getProtectionFlags

public static int getProtectionFlags (PermissionInfo permissionInfo)

Return the additional protection flags of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int