MockScanner

class MockScanner(val isSupported: Boolean, val events: MutableSharedFlow<Scanner.Event>, val connectionEvents: MutableSharedFlow<Scanner.ConnectionEvent>, val discoveryEvents: MutableSharedFlow<List<Scanner.DeviceDiscovered>>) : Scanner

Constructors

Link copied to clipboard
constructor(isSupported: Boolean, events: MutableSharedFlow<Scanner.Event>, connectionEvents: MutableSharedFlow<Scanner.ConnectionEvent>, discoveryEvents: MutableSharedFlow<List<Scanner.DeviceDiscovered>>)

Properties

Link copied to clipboard
open override val connectionEvents: MutableSharedFlow<Scanner.ConnectionEvent>
Link copied to clipboard
open override val discoveryEvents: MutableSharedFlow<List<Scanner.DeviceDiscovered>>
Link copied to clipboard
open override val events: MutableSharedFlow<Scanner.Event>
Link copied to clipboard
open override val isSupported: Boolean
Link copied to clipboard
val retrievePairedDevicesMock: SuspendMethodMock<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?>, Unit>

Functions

Link copied to clipboard
open override fun cancelRetrievingPairedDevices()
Link copied to clipboard
open suspend override fun isHardwareEnabled(): Boolean
Link copied to clipboard
open suspend override fun requestEnableHardware()
Link copied to clipboard
open suspend override fun retrievePairedDevices(withServices: Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?)
Link copied to clipboard
open suspend override fun scanForDevices(filter: Filter, connectionSettings: ConnectionSettings?)
Link copied to clipboard
open suspend override fun startMonitoringHardwareEnabled()
Link copied to clipboard
open suspend override fun startMonitoringPermissions()
Link copied to clipboard
open suspend override fun stopMonitoringHardwareEnabled()
Link copied to clipboard
open suspend override fun stopMonitoringPermissions()
Link copied to clipboard
open suspend override fun stopScanning()