B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent
< B2G | Bluetooth | WebBluetooth-v2
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
- The added adapter.
- Value type
- BluetoothAdapter
isDefault
- Description
- Whether the added adapter is default adapter (true) or not (false).
- Value type
- boolean