BluetoothRemoteGATTCharacteristic:getDescriptor() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
BluetoothRemoteGATTCharacteristic.getDescriptor()
方法返回一个将会兑现为第一个具有给定描述符 UUID 的 BluetoothRemoteGATTDescriptor
的 Promise
。
语法
js
getDescriptor(bluetoothDescriptorUUID)
参数
无。
返回值
Promise
,将会兑现为第一个满足要求的 BluetoothRemoteGATTDescriptor
。
规范
Specification |
---|
Web Bluetooth> # dom-bluetoothremotegattcharacteristic-getdescriptor> |
浏览器兼容性
Loading…