MockBluetoothService
class MockBluetoothService(val discoveredDevicesFlow: MutableStateFlow<List<Device>> = MutableStateFlow(emptyList()), val filteredDevicesFlow: MutableStateFlow<Map<Filter, List<Device>>> = MutableStateFlow(emptyMap()), val pairedDevicesFlow: MutableStateFlow<Map<Set<UUID>, List<Device>>> = MutableStateFlow(emptyMap()), val isEnabled: MutableStateFlow<Boolean> = MutableStateFlow(true), setupMocks: Boolean = true) : BluetoothService
Constructors
Link copied to clipboard
constructor(discoveredDevicesFlow: MutableStateFlow<List<Device>> = MutableStateFlow(emptyList()), filteredDevicesFlow: MutableStateFlow<Map<Filter, List<Device>>> = MutableStateFlow(emptyMap()), pairedDevicesFlow: MutableStateFlow<Map<Set<UUID>, List<Device>>> = MutableStateFlow(emptyMap()), isEnabled: MutableStateFlow<Boolean> = MutableStateFlow(true), setupMocks: Boolean = true)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pairedDevicesMock: MethodMock<TripleParameters.Matchers<Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?>, TripleParameters.MatchersOrCaptor<Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?>, TripleParameters.Values<Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?>, TripleParameters<Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?>, Flow<List<Device>>>
Link copied to clipboard
Link copied to clipboard
val startScanningMock: MethodMock<TripleParameters.Matchers<Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?>, TripleParameters.MatchersOrCaptor<Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?>, TripleParameters.Values<Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?>, TripleParameters<Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?>, Unit>
Link copied to clipboard
val stopScanningMock: MethodMock<SingleParameters.Matchers<cleanMode: BluetoothService.CleanMode>, SingleParameters.MatchersOrCaptor<cleanMode: BluetoothService.CleanMode>, SingleParameters.Values<cleanMode: BluetoothService.CleanMode>, SingleParameters<cleanMode: BluetoothService.CleanMode>, Unit>
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun pairedDevices(filter: Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?): Flow<List<Device>>
Link copied to clipboard
Link copied to clipboard
open override fun startScanning(filter: Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?)
Link copied to clipboard