IClassic Bluetooth Event Callback
IClassicBluetoothEventCallback
Description :
This interface represent the API for all event related to the Classic Bluetooth. This interface is used with the STWBluetoothClassicManager in order to delegate event linked to classic bluetooth.
Example of use :
- Implementation :
IClassicBluetoothEventCallback mClassicBluetoothEventCallback = new IClassicBluetoothEventCallback() { public boolean shouldHandleActions() { } public void onButtonPressed() { } public void onButtonReleased() { } }Content copied to clipboardContent copied to clipboardContent copied to clipboard - Registration :
STWBluetoothClassicManager.getInstance.registerIClassicBluetoothEventCallback(mClassicBluetoothEventCallback)Content copied to clipboardContent copied to clipboardContent copied to clipboard - UnRegister :
STWBluetoothClassicManager.getInstance.unregisterClassicBluetoothEventCallback(mClassicBluetoothEventCallback)Content copied to clipboardContent copied to clipboardContent copied to clipboard
Functions
Link copied to clipboard
Callback triggered when receiving an ACTION_DOWN event.
Link copied to clipboard
Callback triggered when receiving an ACTION_UP event.
Link copied to clipboard
Callback triggered when receiving a PTT ACTION DOWN event.
Link copied to clipboard
Callback triggered when receiving a PTT ACTION UP event.
Link copied to clipboard
Callback triggered when receiving an SOS ACTION_DOWN event.
Link copied to clipboard
Callback triggered when receiving an SOS ACTION_UP event.
Link copied to clipboard
Callback triggered when receiving a Switch to next channel event.
Link copied to clipboard
Callback triggered when receiving a Switch to previous channel event.
Link copied to clipboard
Called every time receiving an event to check if we should handle event.