2015-04-14 01:24:03 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
|
|
|
|
import android.bluetooth.BluetoothAdapter;
|
|
|
|
import android.content.Context;
|
|
|
|
|
|
|
|
public interface DeviceSupport extends EventHandler {
|
|
|
|
public void initialize(GBDevice gbDevice, BluetoothAdapter btAdapter, Context context);
|
2015-04-14 10:29:09 +02:00
|
|
|
|
2015-04-14 01:24:03 +02:00
|
|
|
public boolean connect();
|
|
|
|
|
|
|
|
public GBDevice getDevice();
|
2015-04-14 10:29:09 +02:00
|
|
|
|
2015-04-14 01:24:03 +02:00
|
|
|
public BluetoothAdapter getBluetoothAdapter();
|
2015-04-14 10:29:09 +02:00
|
|
|
|
2015-04-14 01:24:03 +02:00
|
|
|
public Context getContext();
|
2015-04-14 01:39:00 +02:00
|
|
|
|
|
|
|
public void dispose();
|
2015-04-14 01:24:03 +02:00
|
|
|
}
|