Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

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