BluetoothViewModel

class BluetoothViewModel @Inject constructor(bluetoothRepository: BluetoothRepository) : ViewModel

Thin view model which adapts the view layer to the BluetoothRepository.

Constructors

Link copied to clipboard
@Inject
constructor(bluetoothRepository: BluetoothRepository)

Properties

Link copied to clipboard
val enabled: Flow<Boolean>

Functions

Link copied to clipboard

Called when permissions have been updated. This causes an explicit refresh of the bluetooth state.