authorizeStatus(params: Object)
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Query permission status
Parameters
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
scope | "scope.bluetooth" | "scope.record" | "scope.writePhotosAlbum" | "scope.camera" | "scope.userLocation" | "scope.userPreciseLocation" | "scope.userLocationBackground" | "scope.userInfo" | "scope.calendar" | "scope.nearByWifiDevice" | No | 'scope.writePhotosAlbum' | scope permission name |
complete | () => void | No | - | Completion callback (executed on both success and failure) |
success | () => void | No | - | Callback on successful API call |
fail | (params: Object) => void | No | - | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Valid Values
scope
| Value | Description | BaseKit Since |
|---|---|---|
scope.bluetooth | Bluetooth permission | v3.17.4 |
scope.record | Microphone permission | v3.17.4 |
scope.writePhotosAlbum | Write permission | v3.17.4 |
scope.camera | Camera permission | v3.17.4 |
scope.userLocation | Low-accuracy location permission | v3.17.4 |
scope.userPreciseLocation | High-accuracy location permission | v3.17.4 |
scope.userLocationBackground | Background location permission Note: On iOS, enable TARGETS->Capabilities->Background Modes->Location updates | v3.17.4 |
scope.userInfo | User information | v3.17.4 |
scope.calendar | Calendar read/write permission | v3.32.13 |
scope.nearByWifiDevice | Connect to nearby Wi-Fi devices, Android only | v3.32.13 |