BluetoothRemoteGATTCharacteristic:getDescriptors() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
BluetoothRemoteGATTCharacteristic.getDescriptors() 方法返回一个 Promise,其会兑现为包含所有给定描述符 UUID 的 BluetoothRemoteGATTDescriptor 对象的数组(Array)。
语法
js
getDescriptors(bluetoothDescriptorUUID)
参数
无。
返回值
Promise,其会兑现为包含 BluetoothRemoteGATTDescriptor 对象的数组(Array)。
规范
| Specification |
|---|
| Web Bluetooth> # dom-bluetoothremotegattcharacteristic-getdescriptors> |
浏览器兼容性
Loading…