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

 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


== Interface ==
== Interface ==
  [Func="Navigator::HasBluetoothSupport"]
  [CheckPermissions="bluetooth"]
  interface BluetoothAdapterEvent : Event
  interface BluetoothAdapterEvent : Event
  {
  {
Line 9: Line 9:
   readonly attribute DOMString?        [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address|address]];
   readonly attribute DOMString?        [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address|address]];
  };
  };
= BluetoothAdapterEvent =


== Properties ==
== Properties ==
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#isDefault|BluetoothAdapterEvent.isDefault]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#adapter|BluetoothAdapterEvent.adapter]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#adapter|BluetoothAdapterEvent.adapter]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address|BluetoothAdapterEvent.address]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent#address|BluetoothAdapterEvent.address]]
=== isDefault ===
; Description
: Whether the added/removed adapter is default adapter (true) or not (false).
; Value type
: boolean


=== adapter ===
=== adapter ===
Line 33: Line 23:
=== address ===
=== address ===
; Description
; Description
: The address of removed adapter. The property is null for event handler [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapteradded|manager.onadapteradded]] since [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter|BluetoothAdapter]] already has property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#address|address]].
: The address of removed adapter. The property is empty string for event handler [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager#onadapteradded|manager.onadapteradded]] since [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter|BluetoothAdapter]] already has property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#address|address]].


; Value type
; Value type
: DOMString
: DOMString
Confirmed users
891

edits