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

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
== Interface ==
== Interface ==
  interface BluetoothStartDiscoverRequest: DOMRequest {
  interface BluetoothStartDiscoverRequest: DOMRequest {
   attribute EventHandler [https://wiki.mozilla.org/index.php?title=B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound ondevicefound];
   attribute EventHandler [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound|ondevicefound]];
  }
  }


== Event Handler ==
== Event Handler ==
* [https://wiki.mozilla.org/index.php?title=B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound BluetoothStartDiscoveryRequest.ondevicefound]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothStartDiscoveryRequest#ondevicefound|BluetoothStartDiscoveryRequest.ondevicefound]]


=== ondevicefound ===
=== ondevicefound ===
Line 15: Line 15:
; Parameter
; Parameter
: aDeviceEvent
: aDeviceEvent
:: The event is a [https://wiki.mozilla.org/index.php?title=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 device as the discovered remote bluetooth device.

Revision as of 02:08, 3 April 2014

Overview

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.