1 of 12

�Bluetooth 301

2013.12.02 Gina Yeh

2 of 12

Recap

  • BluetoothManager
    • Manage the adapters
  • BluetoothAdapter
    • Represent local device
  • BluetoothDevice
    • Represent remote device

3 of 12

4 of 12

5 of 12

Web IDL

  • gecko/dom/webidl/BluetoothManager.webidl
    • Enable / Disable
  • gecko/dom/webidl/BluetoothAdapter.webidl
    • Pairing-related APIs
    • Profile-related APIs
  • gecko/dom/webidl/BluetoothDevice.webidl
    • All read-only attributes

6 of 12

Architecture (1/4)

7 of 12

Architecture (2/4)

8 of 12

Architecture (3/4)

9 of 12

Architecture (4/4)

10 of 12

Ex 1. PropertyChanged

11 of 12

Ex 2. IsConnected()

12 of 12

Ex 3. GetDefaultAdapter()