Package-level declarations

Types

Link copied to clipboard
class BluetoothButtonClickProxy(bluetoothButtonHandler: BluetoothButtonHandler)
Link copied to clipboard
class BluetoothButtonHandler(context: Context, scope: CoroutineScope)

This class will scan for bluetooth devices and connect to a specified device. Upon connection it will look for notification characteristics and if found listen for updates on those characteristics. This class is meant to support push to talk buttons so only notifications with a value of 0 or 1 will be processed. When a 0 or 1 is received a button state is emitted.

Link copied to clipboard
class BluetoothButtonSelectorViewModel(bluetoothButtonHandler: BluetoothButtonHandler, bluetoothPermissions: BluetoothPermissions) : ViewModel
Link copied to clipboard
Link copied to clipboard
sealed class BluetoothOperation

Functions

Link copied to clipboard
fun BluetoothButtonSelector(modifier: Modifier = Modifier, devices: List<String> = emptyList(), notificationText: String = "", deviceListIsVisible: Boolean = false, onStartScanning: () -> Unit = {}, onSelectDevice: (String) -> Unit = {})