B2G/BluetoothManager

From MozillaWiki
< B2G
Revision as of 03:27, 25 February 2014 by Btian (talk | contribs) (→‎Properties)
Jump to navigation Jump to search

Summary

The BluetoothManager API allows to access all Bluetooth adapters available on the device. Adapters are the connection interface to connect a Bluetooth device to that device.

Interface Overview

interface BluetoothManager: EventTarget
{
  attribute EventHandler onadapteradded;
  attribute EventHandler onadapterremoved;

  BluetoothAdapter[] getAdapters();
  BluetoothAdapter getDefaultAdapter();
};

Properties

  • BluetoothManager.onadapteradded
  • BluetoothManager.onadapterremoved

Methods

  • BluetoothManager.getAdapters()
  • BluetoothManager.getDefaultAdapter()