BTAdapter represents one local Bluetooth Controller.
Event listener to receive change events regarding the system's BTAdapter set, e.g.
void adapterAdded(final BTAdapter adapter)
BTAdapter was added to the system.
void adapterRemoved(final BTAdapter adapter)
BTAdapter was removed from the system.
A thread safe singleton handler of the BTAdapter manager, e.g.
void addChangedAdapterSetListener(final ChangedAdapterSetListener l)
Add the given ChangedAdapterSetListener to this manager.
int removeAllChangedAdapterSetListener()
Remove all added ChangedAdapterSetListener entries from this manager.
List< BTAdapter > getAdapters()
Returns a list of BluetoothAdapters available in the system.
int removeChangedAdapterSetListener(final ChangedAdapterSetListener l)
Remove the given ChangedAdapterSetListener from this manager.
BTAdapter getAdapter(final int dev_id)
Returns the BluetoothAdapter matching the given dev_id or null if not found.
void shutdown()
Release the native memory associated with this object and all related Bluetooth resources.
boolean setDefaultAdapter(BTAdapter adapter)
Sets a default adapter to use for discovery.
BTAdapter getDefaultAdapter()
Gets the default adapter to use for discovery.