提交 999f5670 编写于 作者: D DCloud_LXH

chore: getSystemSetting、getAppAuthorizeSetting

上级 506b489e
...@@ -34,19 +34,19 @@ ...@@ -34,19 +34,19 @@
- `'config error'` - `'config error'`
- bluetoothAuthorized: - bluetoothAuthorized:
- Android平台不会返回 `config error` - Android平台不会返回 `config error`
- iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块则会返回该值 - iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块
- cameraAuthorized: - cameraAuthorized:
- Android平台:表示没有授予 `android.permission.CAMERA` 权限则会返回该值 - Android平台:表示没有授予 `android.permission.CAMERA` 权限
- iOS平台不会返回 `config error` - iOS平台不会返回 `config error`
- locationAuthorized: - locationAuthorized:
- Android平台:表示没有授予 `android.permission.ACCESS_COARSE_LOCATION` 权限则会返回该值 - Android平台:表示没有授予 `android.permission.ACCESS_COARSE_LOCATION` 权限
- iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块则会返回该值 - iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块
- microphoneAuthorized: - microphoneAuthorized:
- Android平台:表示没有授予 `android.permission.RECORD_AUDIO` 权限则会返回该值 - Android平台:表示没有授予 `android.permission.RECORD_AUDIO` 权限
- iOS平台不会返回 `config error` - iOS平台不会返回 `config error`
- notificationAuthorized、notificationAlertAuthorized、notificationBadgeAuthorized、notificationSoundAuthorized: - notificationAuthorized、notificationAlertAuthorized、notificationBadgeAuthorized、notificationSoundAuthorized:
- Android平台不支持 - Android平台不支持
- iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块则会返回该值 - iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
**示例** **示例**
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
|属性|类型|说明| |属性|类型|说明|
|:-|:-|:-| |:-|:-|:-|
|bluetoothEnabled|boolean|蓝牙的系统开关。当值为 `false` 时,App端:有可能是配置不正确导致,此时会返回 `bluetoothError` 属性描述错误| |bluetoothEnabled|boolean|蓝牙的系统开关。当值为 `false` 时,App端:有可能是配置不正确导致,此时会返回 `bluetoothError` 属性描述错误|
|bluetoothError|String/undefined|App端没有权限或者模块配置错误时返回,否则不返回此属性。详情见下| |bluetoothError|String/undefined|App端没有权限或者模块配置错误时返回,否则不返回此属性。详情见下|
|locationEnabled|boolean|地理位置的系统开关。当值为 `false` 时,App端:Android平台是准确的;iOS平台有可能是配置不正确导致,此时会返回 `locationError` 属性描述错误.| |locationEnabled|boolean|地理位置的系统开关。当值为 `false` 时,App端:Android平台是准确的;iOS平台有可能是配置不正确导致,此时会返回 `locationError` 属性描述错误.|
|locationError|String/undefined|App端模块配置错误时返回,否则不返回此属性。详情见下| |locationError|String/undefined|App端模块配置错误时返回,否则不返回此属性。详情见下|
...@@ -20,8 +20,12 @@ ...@@ -20,8 +20,12 @@
|deviceOrientation|string|设备方向。`竖屏:portrait``横屏:landscape`| |deviceOrientation|string|设备方向。`竖屏:portrait``横屏:landscape`|
**Tips** **Tips**
- `bluetoothError`:Android平台值为 `"Missing permissions required by BluetoothAdapter.isEnabled: android.permission.BLUETOOTH"` 表示没有 `android.permission.BLUETOOTH` 权限;iOS平台值为 `"Missing bluetooth module in manifest.json"` ,表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块 - `bluetoothError`
- `locationError`:Android平台不会返回此值;iOS平台值为 `"Missing geolocation module in manifest.json"` 表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块 - Android平台值为 `"Missing permissions required by BluetoothAdapter.isEnabled: android.permission.BLUETOOTH"` 表示没有 `android.permission.BLUETOOTH` 权限
- iOS平台值为 `"Missing bluetooth module in manifest.json"` ,表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块
- `locationError`
- Android平台不会返回此值;
- iOS平台值为 `"Missing geolocation module in manifest.json"` 表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块
**示例** **示例**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册