public interface BluetoothController
Modifier and Type | Interface and Description |
---|---|
static interface |
BluetoothController.Callback |
Modifier and Type | Method and Description |
---|---|
void |
addStateChangedCallback(BluetoothController.Callback callback) |
boolean |
canConfigBluetooth() |
void |
connect(CachedBluetoothDevice device) |
void |
disconnect(CachedBluetoothDevice device) |
int |
getBluetoothState() |
Collection<CachedBluetoothDevice> |
getDevices() |
String |
getLastDeviceName() |
boolean |
isBluetoothConnected() |
boolean |
isBluetoothConnecting() |
boolean |
isBluetoothEnabled() |
boolean |
isBluetoothSupported() |
void |
removeStateChangedCallback(BluetoothController.Callback callback) |
void |
setBluetoothEnabled(boolean enabled) |
void addStateChangedCallback(BluetoothController.Callback callback)
void removeStateChangedCallback(BluetoothController.Callback callback)
boolean isBluetoothSupported()
boolean isBluetoothEnabled()
int getBluetoothState()
boolean isBluetoothConnected()
boolean isBluetoothConnecting()
String getLastDeviceName()
void setBluetoothEnabled(boolean enabled)
Collection<CachedBluetoothDevice> getDevices()
void connect(CachedBluetoothDevice device)
void disconnect(CachedBluetoothDevice device)
boolean canConfigBluetooth()