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

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