PermissionsKepler provides access to the Vega permissions model.
Example
Reference
Hooks
usePermissionsKepler
Methods
check
request
Remarks
The process flow depends on the current state of the permission:- Permission Already Granted:
- The function automatically resolves to
grantedwithout displaying any dialog if the requested permission has already been granted.
- The function automatically resolves to
- Permission Not Granted:
- If the permission has not been granted, a dialog box is presented to the user with
AllowandDenyoptions. - User Selects
Allow:- The function resolves to
granted. - All future requests for this specific permission will automatically resolve to
trueas well, without showing the dialog again.
- The function resolves to
- User Selects
Deny:- The function resolves to
denied. - The specific permission request requires that the dialog is shown again on subsequent requests.
- The function resolves to
- If the permission has not been granted, a dialog box is presented to the user with
Returns
Return Type: One of thePermissionStatus values.

