Version: Smart Feature Phone 2.5Version: Smart Feature Phone 2.6

BluetoothManager

Description#

The BluetoothManager interface of the Bluetooth API allows to access all Bluetooth adapters available on the device. Adapters are the connection interface to connect a Bluetooth device to that device.

Interface overview#

[Exposed=Window]
interface BluetoothManager: EventTarget
{
readonly attribute BluetoothAdapter? defaultAdapter;
attribute EventHandler onattributechanged;
attribute EventHandler onadapteradded;
attribute EventHandler onadapterremoved;
sequence<BluetoothAdapter> getAdapters();
};

Properties#

  • BluetoothManager.defaultAdapter read-only A BluetoothAdapter object selected by default. The value would be null if the device doesn't have any Bluetooth chip.

Event Handlers#

Note: Because the BluetoothManager interface inherits from the EventTarget interface, all these events can be listened by using the addEventListener method.

Methods#