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

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
  {
  {
   readonly attribute BluetoothDevice? device;
   readonly attribute BluetoothDevice? device;
   readonly attribute DOMString? address;
   readonly attribute DOMString?       address;
  };
  };



Revision as of 06:00, 21 March 2014

Overview

BluetoothDeviceEvent is carried as the argument of adapter.ondevicepaired and adapter.ondeviceunpaired event handlers. Applications can get the paired BluetoothDevice object or the address of unpaired remote device.

Interface

interface BluetoothDeviceEvent : Event
{
  readonly attribute BluetoothDevice? device;
  readonly attribute DOMString?       address;
};

Properties

device

Description
The paired remote device.
Value type
BluetoothDevice
Default Value
Null pointer

address

Description
The address of unpaired remote device.
Value type
DOMString
Default Value
Empty string ("")