BluetoothSDK-Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IBluetoothSDKListener { | |
/** | |
* from action BluetoothUtils.ACTION_DISCOVERY_STARTED | |
*/ | |
fun onDiscoveryStarted() | |
/** | |
* from action BluetoothUtils.ACTION_DISCOVERY_STOPPED | |
*/ | |
fun onDiscoveryStopped() | |
/** | |
* from action BluetoothUtils.ACTION_DEVICE_FOUND | |
*/ | |
fun onDeviceDiscovered(device: BluetoothDevice?) | |
/** | |
* from action BluetoothUtils.ACTION_DEVICE_CONNECTED | |
*/ | |
fun onDeviceConnected(device: BluetoothDevice?) | |
/** | |
* from action BluetoothUtils.ACTION_MESSAGE_RECEIVED | |
*/ | |
fun onMessageReceived(device: BluetoothDevice?, message: String?) | |
/** | |
* from action BluetoothUtils.ACTION_MESSAGE_SENT | |
*/ | |
fun onMessageSent(device: BluetoothDevice?) | |
/** | |
* from action BluetoothUtils.ACTION_CONNECTION_ERROR | |
*/ | |
fun onError(message: String?) | |
/** | |
* from action BluetoothUtils.ACTION_DEVICE_DISCONNECTED | |
*/ | |
fun onDeviceDisconnected() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment