public interface BluetoothPeerListener
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Modifier and Type | Method and Description |
---|---|
void |
notifyConnection(android.bluetooth.BluetoothDevice device,
boolean connected)
Called when connection is established/lost.
|
void |
receiveDataBlock(int[] data)
Called when incoming data is received.
|
void receiveDataBlock(int[] data)
data
- an integer array containing the data receivedvoid notifyConnection(android.bluetooth.BluetoothDevice device, boolean connected)
device
- device that connects/disconnectsconnected
- if true, the device connects; otherwise it disconnects