MockBaseScanner

constructor(initialBluetoothEnabled: Boolean, settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher, isSupported: Boolean = true)

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