belongs to Maven artifact androidx.core:core:1.0.0-alpha1

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

int getProtection (PermissionInfo permissionInfo)

Return the base permission type of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int

getProtectionFlags

int getProtectionFlags (PermissionInfo permissionInfo)

Return the additional protection flags of a PermissionInfo.

Parameters
permissionInfo PermissionInfo

Returns
int