getPermission
Functional API
getPermissionYou can use the same function with this as well.
Feature description
Get the current status of the permission. Check only the status without showing the system permission request UI. If the user has not yet responded to the permission request notDeterminedis returned.
A representative name/access The combinations are as follows.
name
access
clipboard
read, write
contacts
read
photos
read
geolocation
access
camera
access
microphone
access
Type
getPermission(permission: { name: PermissionName; access: PermissionAccess }): Promise<PermissionStatus>;Params
type PermissionName =
"clipboard" | "contacts" | "photos" | "geolocation" | "camera" | "microphone";
type PermissionAccess = "read" | "write" | "access";Response
Example code
Was this helpful?