B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest: Difference between revisions
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
'''BluetoothStartDiscoveryRequest''' extends DOMRequest to handle the discovered devices. Its onsuccess is fired to indicate startDiscovery operation has completed, and ondevicefound is fired each time a remote bluetooth device is discovered. If the bluetooth adapter is currently disabled, the DOMRequest's onerror is fired. | |||
== Interface == | == Interface == |
Revision as of 02:25, 3 April 2014
Overview
BluetoothStartDiscoveryRequest extends DOMRequest to handle the discovered devices. Its onsuccess is fired to indicate startDiscovery operation has completed, and ondevicefound is fired each time a remote bluetooth device is discovered. If the bluetooth adapter is currently disabled, the DOMRequest's onerror is fired.
Interface
interface BluetoothStartDiscoverRequest: DOMRequest { attribute EventHandler ondevicefound; }
Event Handler
ondevicefound
- Description
- A event handler to trigger each time a remote bluetooth device is discovered.
- Parameter
- aDeviceEvent
- The event is a BluetoothDeviceEvent with property device as the discovered remote bluetooth device.