uni.getSystemSetting()
获取系统设置
返回值
GetSystemSettingResult 属性值
| 名称 | 类型 | 必备 | 默认值 | 描述 |
| bluetoothEnabled | boolean | 否 | - | 蓝牙是否开启 |
| bluetoothError | string | 否 | - | 蓝牙的报错信息 |
| locationEnabled | boolean | 是 | - | 位置是否开启 |
| wifiEnabled | boolean | 否 | - | wifi是否开启 |
| wifiError | string | 否 | - | wifi的报错信息 |
| deviceOrientation | string | 是 | - | 设备方向 |
getSystemSetting 兼容性
| 安卓系统版本 | 安卓 uni-app | 安卓 uni-app-x | iOS 系统版本 | iOS uni-app | iOS uni-app-x |
| 4.4 | √ | 3.9.0 | 9.0 | √ | 3.9.0 |
参见
getSystemSetting
通用类型
GeneralCallbackResult
| 名称 | 类型 | 必备 | 默认值 | 描述 |
| errMsg | string | 是 | - | 错误信息 |