Modifier and Type | Class and Description |
---|---|
static class |
BtReconnectingDeviceState.Companion |
Modifier and Type | Field and Description |
---|---|
static BtReconnectingDeviceState.Companion |
Companion |
KEY_BT_DEVICE
Constructor and Description |
---|
BtReconnectingDeviceState(BtStateMachine stateMachine)
The device is being re-connected
|
Modifier and Type | Method and Description |
---|---|
BtStateMachine |
component1() |
BtReconnectingDeviceState |
copy(BtStateMachine stateMachine)
The device is being re-connected
|
void |
disableBluetooth()
Turn off BT
|
void |
enableBluetooth()
An action to turn on the BT on the device was started. Requires user
interaction in order to accept
|
void |
enableDiscoverable()
Makes the device discoverable to other BT devices. In order to pair/connect to a device it
needs first to be discoverable
|
boolean |
equals(java.lang.Object p) |
BtStateMachine |
getStateMachine() |
int |
hashCode() |
void |
pair(android.bluetooth.BluetoothDevice device)
Pairing process was started. The 'pin' dialog will be displayed
|
void |
requestPermission(android.app.Activity activity,
int requestCode)
Required for BT scanning.
|
void |
scan()
A scan for BT devices is ongoing.
|
void |
stopScan()
Stop an ongoing BT scanning
|
java.lang.String |
toString() |
void |
unpair(android.bluetooth.BluetoothDevice device)
Triggers the un-pairing process
|
disableBluetooth, enableBluetooth, enableDiscoverable, pair, requestPermission, scan, stopScan, unpair
public static BtReconnectingDeviceState.Companion Companion
public BtReconnectingDeviceState(BtStateMachine stateMachine)
The device is being re-connected
public void enableBluetooth()
An action to turn on the BT on the device was started. Requires user interaction in order to accept
public void requestPermission(android.app.Activity activity, int requestCode)
Required for BT scanning.
public void scan()
A scan for BT devices is ongoing.
public void stopScan()
Stop an ongoing BT scanning
public void disableBluetooth()
Turn off BT
public void enableDiscoverable()
Makes the device discoverable to other BT devices. In order to pair/connect to a device it needs first to be discoverable
public void unpair(android.bluetooth.BluetoothDevice device)
Triggers the un-pairing process
device
- remote device to unpairpublic void pair(android.bluetooth.BluetoothDevice device)
Pairing process was started. The 'pin' dialog will be displayed
device
- the remote device to pair torpublic BtStateMachine getStateMachine()
public BtStateMachine component1()
public BtReconnectingDeviceState copy(BtStateMachine stateMachine)
The device is being re-connected
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)