# openNativeSystemSetting ^7.10
打开指定的系统设置
# 调用方式
openNativeSystemSetting(settingName)
1
返回 Promise,使用 then/catch 或 await 处理结果。
# 请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| settingName | String | Y | — | 要打开的系统设置名称,例如 bluetooth;当前 JS 未设置默认名称 |
# 接口调用示例
this.$bridge.openNativeSystemSetting('bluetooth')
.then(res => {
console.log(res)
})
.catch(error => {
console.error(error)
})
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回参数
返回 Promise;原生返回数据的字段由宿主决定,当前 JS 封装未限定完整结构。