title: Taro.openSystemBluetoothSetting(option)

sidebar_label: openSystemBluetoothSetting

跳转系统蓝牙设置页

支持情况:openSystemBluetoothSetting - 图1 openSystemBluetoothSetting - 图2 openSystemBluetoothSetting - 图3

参考文档

类型

  1. (option: Option) => Promise<TaroGeneral.CallbackResult>

参数

参数 类型
option Option

Option

参数 类型 必填 说明
success (res: TaroGeneral.CallbackResult) => void 接口调用成功的回调函数
fail (res: TaroGeneral.CallbackResult) => void 接口调用失败的回调函数
complete (res: TaroGeneral.CallbackResult) => void 接口调用结束的回调函数(调用成功、失败都会执行)

示例代码

  1. Taro.openSystemBluetoothSetting({
  2. success (res) {
  3. console.log(res)
  4. }
  5. })