Bluetooth Socket Connection Listener
BluetoothSocketConnectionListener
Description :
This class represent the API for all actions/event related to Classic bluetooth. This interface is used with the STWBluetoothClassicManager in order to delegate event linked to classic bluetooth.
*Example of use :
- Implementation :
BluetoothSocketConnectionListener mBluetoothSocketConnectionListener = new BluetoothSocketConnectionListener() { public String getLastConnectedBluetoothDeviceAddress() { //code ... } public void onSocketConnected() { //code ... } public void onSocketClosed() { //code ... } }Content copied to clipboard - Registration :
STWBluetoothClassicManager.getInstance.registerBluetoothSocketConnectionListenerCallback(mBluetoothSocketConnectionListener)Content copied to clipboard - UnRegister :
STWBluetoothClassicManager.getInstance.unregisterBluetoothSocketConnectionListener(mBluetoothSocketConnectionListener)Content copied to clipboard
Functions
Link copied to clipboard
Called to get the connected device address
Link copied to clipboard
Callback triggered Socket is Disconnected.
Link copied to clipboard
Callback triggered when socket is Connected.