mock
fun CentralManager.Factory.mock(scope: CoroutineScope, environment: MockEnvironment = LatestApi()): MockCentralManager
Creates a mock implementation of a CentralManager that can emulate scanning and connecting to Bluetooth Low Energy devices.
Use MockCentralManager.simulatePeripherals to set up mock peripherals and other methods from SimulationProvider to control the simulation.
Parameters
scope
The coroutine scope.