Builder

class Builder(initialBluetoothEnabled: Boolean, setupMocks: Boolean = true) : BaseScanner.Builder

Mock implementation of BaseScanner.Builder

Parameters

initialBluetoothEnabled

Sets the initial enabled state of bluetooth

setupMocks

If true this will automatically configure the createMock to build MockScanner

Constructors

Link copied to clipboard
constructor(initialBluetoothEnabled: Boolean, setupMocks: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
val createMock: MethodMock<TripleParameters.Matchers<settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher>, TripleParameters.MatchersOrCaptor<settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher>, TripleParameters.Values<settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher>, TripleParameters<settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher>, BaseScanner>

Functions

Link copied to clipboard
open override fun create(settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher): BaseScanner