MockBaseScanner
class MockBaseScanner(initialBluetoothEnabled: Boolean, settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher, val isSupported: Boolean = true) : BaseScanner
Mock implementation of BaseScanner
Parameters
initialBluetoothEnabled
Sets the initial enabled state of bluetooth
settings
BaseScanner.Settings to configure this scanner
coroutineScope
The CoroutineScope to run this Scanner on
scanningDispatcher
the CoroutineDispatcher to which scanning should be dispatched. It is recommended to make this a dispatcher that can handle high frequency of events
isSupported
Indicates whether the system supports Bluetooth scanning
Constructors
Link copied to clipboard
constructor(initialBluetoothEnabled: Boolean, settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher, isSupported: Boolean = true)
Types
Link copied to clipboard
Mock implementation of BaseScanner.Builder
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val didStartScanningMock: SuspendMethodMock<SingleParameters.Matchers<filter: Set<UUID>>, SingleParameters.MatchersOrCaptor<filter: Set<UUID>>, SingleParameters.Values<filter: Set<UUID>>, SingleParameters<filter: Set<UUID>>, Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val retrievePairedDeviceDiscoveredEventsMock: SuspendMethodMock<PairParameters.Matchers<Filter, connectionSettings: ConnectionSettings?>, PairParameters.MatchersOrCaptor<Filter, connectionSettings: ConnectionSettings?>, PairParameters.Values<Filter, connectionSettings: ConnectionSettings?>, PairParameters<Filter, connectionSettings: ConnectionSettings?>, List<Scanner.DeviceDiscovered>>
com.splendo.kaluga.test.base.mock.BaseMethodMock for pairedDevices
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open override fun handleDeviceDiscovered(deviceWrapper: DeviceWrapper, rssi: RSSI, advertisementData: BaseAdvertisementData, deviceCreator: (CoroutineContext) -> Device)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun retrievePairedDevices(withServices: Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard