B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest: Difference between revisions
< B2G | Bluetooth | WebBluetooth-v2
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
== Event Handler == | == Event Handler == | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound| | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound|BluetoothDiscoveryHandle.ondevicefound]] | ||
=== ondevicefound === | === ondevicefound === | ||
Line 16: | Line 16: | ||
; Parameter | ; Parameter | ||
: aDeviceEvent | : aDeviceEvent | ||
:: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] with property device as the discovered remote bluetooth device. | :: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#device|device]] as the discovered remote bluetooth device. |
Revision as of 06:02, 18 April 2014
Overview
BluetoothDiscoveryHandle is used to notify application of discovered remote bluetooth device. Its event handler ondevicefound is fired each time a remote bluetooth device is discovered.
Interface
interface BluetoothStartDiscoverRequest: EventTarget { 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.