web api interface
Bluetooth
Secure contextLimited availability
The Bluetooth interface of the Web Bluetooth API provides methods to query Bluetooth availability and request access to devices.
Instance properties
Inherits properties from its parent EventTarget.
Instance methods
Bluetooth.getAvailability()Experimental- : Returns a
Promisethat resolves to a boolean value indicating whether the user agent can support Bluetooth. Some user agents let the user configure an option that specifies what value is returned by this method.
- : Returns a
Bluetooth.getDevices()Experimental- : Returns a
Promisethat resolves to an array ofBluetoothDevices this origin is allowed to access. Permission is obtained via previous calls toBluetooth.requestDevice().
- : Returns a
Bluetooth.requestDevice()Experimental- : Returns a
Promisethat resolves to aBluetoothDeviceobject matching the specified options.
- : Returns a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.