B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Replaced content with "remove this page.")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
remove this page.
'''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 [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound|ondevicefound]];
}
 
== Event Handler ==
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound|BluetoothStartDiscoveryRequest.ondevicefound]]
 
=== ondevicefound ===
; Description
: A event handler to trigger each time a remote bluetooth device is discovered.
 
; Parameter
: aDeviceEvent
:: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] with property device as the discovered remote bluetooth device.

Latest revision as of 06:04, 18 April 2014

remove this page.