B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent

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
The added adapter.
Value type
BluetoothAdapter

isDefault

Description
Whether the added adapter is default adapter (true) or not (false).
Value type
boolean