B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle

From MozillaWiki
< B2G‎ | Bluetooth‎ | WebBluetooth-v2
Revision as of 06:04, 18 April 2014 by Btian (talk | contribs) (Created page with "== Overview == '''BluetoothDiscoveryHandle''' is used to notify application of discovered remote bluetooth device. Its event handler ondevicefound is fired each time a remote ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.