SmartDeviceModel.getBluetooth

版本要求:
@ray-js/panel-sdk≥1.0.0

方法签名
SmartDeviceModel.getBluetooth()

描述

获取智能设备所处环境的蓝牙状态

参数

无

返回值

类型:any
蓝牙状态对象,包含 available(蓝牙是否可用)

示例代码

示例

const bluetooth = device.getBluetooth();
console.log(bluetooth.available); // true