public static interface BTConnectThread.Listener
| Modifier and Type | Method and Description |
|---|---|
void |
completedConnectBluetooth(android.bluetooth.BluetoothSocket socket,
boolean success) |
void |
disconnectBluetooth(android.bluetooth.BluetoothDevice device,
int tryCnt,
int maxCnt) |
void |
readyP2pConnect(WifiStatusItem item)
after connected bluetooth, it will get wifi p2p ssid from bluetooth socket to connect wifi p2p automatically
|
void |
tryReconnectBluetooth(android.bluetooth.BluetoothSocket socket,
int cnt) |
void completedConnectBluetooth(android.bluetooth.BluetoothSocket socket,
boolean success)
socket - connected bluetooth socket. it can be null.success - if success is false, bluetooth socket is null.void tryReconnectBluetooth(android.bluetooth.BluetoothSocket socket,
int cnt)
socket - reconnected bluetooth socketcnt - reconnect count, you can make disconnect bluetooth with this.void disconnectBluetooth(android.bluetooth.BluetoothDevice device,
int tryCnt,
int maxCnt)
device - disconnected bluetooth devicetryCnt - reconnected countmaxCnt - reconnect max count, and if tryCnt is not reached maxCnt, it means that force closed.void readyP2pConnect(WifiStatusItem item)
item - WifiStatusItem has wifi p2p information