isGranted
Checks whether the permission group backing kind is currently granted.
Handles special cases where "granted" means any of several permissions:
PermissionKind.Location is satisfied by fine or coarse location.
PermissionKind.LocalNetwork uses
NEARBY_WIFI_DEVICESon Android 13+ and falls back to location permission on older releases. All other kinds require all of their backing permissions.
Return
true if the app currently holds sufficient permission for kind.
Parameters
context
Context used to check self permissions.
kind
Logical permission group to evaluate.