Skip to content

PermissionsAPI

Types

permissionDescriptor

type permissionDescriptor = {mutable name: permissionName}

Record fields

permissionName

type permissionName =
| @as("geolocation") Geolocation
| @as("midi") Midi
| @as("notifications") Notifications
| @as("persistent-storage") PersistentStorage
| @as("push") Push
| @as("screen-wake-lock") ScreenWakeLock
| @as("storage-access") StorageAccess

permissions

type permissions = {}

Module

There are methods and helpers defined in Permissions .

permissionState

type permissionState =
| @as("denied") Denied
| @as("granted") Granted
| @as("prompt") Prompt

permissionStatus

type permissionStatus = {
state: permissionState,
name: string,
}

Record fields

name
string