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

BluetoothManager.onadapteradded

Description#

Specifies an event listener to receive adapteradded events. Those events occur when a Bluetooth adapter is added to the device. Each time this event occurs, the BluetoothManager.getAdapters() method will be able to access the last added adapter.

Syntax#

navigator.b2g.bluetooth.onadapteradded = funcRef

Where funcRef is a function to be called when the adapteradded event occurs. That function gets a BluetoothAdapterEvent object as its first parameter.