Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.core:core:1.0.0-rc01

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

added in version 1.0.0
public static int getProtection (PermissionInfo permissionInfo)

Return the base permission type of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int

getProtectionFlags

added in version 1.0.0
public static int getProtectionFlags (PermissionInfo permissionInfo)

Return the additional protection flags of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int