public interface BluetoothServerListener
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Modifier and Type | Method and Description |
---|---|
boolean |
notifyClientConnection(android.bluetooth.BluetoothDevice clientDevice,
java.io.InputStream is,
java.io.OutputStream os)
Called when a client connects successfully to the server.
|
boolean notifyClientConnection(android.bluetooth.BluetoothDevice clientDevice, java.io.InputStream is, java.io.OutputStream os)
clientDevice
- the BluetoothDevice of the connected clientis
- the InputStream to get data from the connected clientos
- the OutputStream to send data to the connected client