Some javadoc re DeviceManager

This commit is contained in:
cpfeiffer 2016-06-18 23:40:37 +02:00
parent 233a6155cc
commit dc932355b5
1 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,16 @@ public class DeviceHelper {
return null;
}
/**
* Returns the list of all available devices that are supported by Gadgetbridge.
* Note that no state is known about the returned devices. Even if one of those
* devices is connected, it will report the default not-connected state.
*
* Clients interested in the "live" devices being managed should use the class
* DeviceManager.
* @param context
* @return
*/
public Set<GBDevice> getAvailableDevices(Context context) {
BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();