B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent

From MozillaWiki
Jump to navigation Jump to search

Overview

BluetoothAdapterEvent is carried as the argument of manager.onadapteradded event handler. Applications can get the added BluetoothAdapter object and knows whether the added adapter is default adapter.

Interface

interface BluetoothAdapterEvent : Event
{
  readonly attribute BluetoothAdapter adapter;
  readonly attribute boolean isDefault;
};

Properties

adapter

Description
A BluetoothAdapter object representing the physical interface which is used to interact with local Bluetooth device.
Value type
BluetoothAdapter