public static interface BTSocketListener.Callback
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(BluetoothDevice device)
Implement this method to decide which client is authorized to talk to the server.
|
void |
onDisconnected(BluetoothDevice device)
Called when the socket has been disconnected for any reason.
|
BTMessage |
onMsgReceived(BluetoothDevice sender,
BTMessage msg)
Called when when a message is received.
|
BTMessage onMsgReceived(BluetoothDevice sender, BTMessage msg)
sender
- the device that sent the messagemsg
- the messageboolean isAuthorized(BluetoothDevice device)
void onDisconnected(BluetoothDevice device)