B2G/Bluetooth/WebBluetooth-v2/BluetoothAddressEvent

From MozillaWiki
Jump to: navigation, search

Overview

BluetoothAddressEvent is carried as the argument of manager.onadapterremoved and adapter.ondeviceunpaired event handlers. Applications can get the address of removed adapter and knows whether the removed adapter is default adapter for manager.onadapterremoved; For adapter.ondeviceunpaired, applications get the address of unpaired remote bluetooth device.

Interface

interface BluetoothAddressEvent : Event
{
  readonly attribute DOMString address;
  readonly attribute boolean?  isDefault;
};

Properties

address

Description
Represents the bluetooth address
Value type
DOMString