非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

This API is available on Firefox OS for internal applications 仅。

摘要

getDefaultAdapter method is used to retrieve the default adapter used to connect the device to third-party Bluetooth devices.

Each time a new adapter is plugged into the device, it becomes the new default adapter. Usually, a Firefox OS device has only one adapter available.

句法

var request = navigator.mozBluetooth.getDefaultAdapter();
					

返回

A DOMRequest object to handle the success or error of the operation. In case of success the request's result BluetoothAdapter 对象。

规范

Not part of any specification yet. It should be discussed as part of the W3C's System Applications Working Group .

另请参阅

元数据

  • 最后修改: