SimulationProvider

This class allows simulating events which would normally be emitted by the real central manager.

Functions

Link copied to clipboard
abstract fun simulatePeripherals(peripherals: List<PeripheralSpec<ID>>)

Sets a list of simulated peripherals.

Link copied to clipboard
abstract fun simulatePowerOff()

Simulates turning off Bluetooth adapter on the device.

Link copied to clipboard
abstract fun simulatePowerOn()

Simulates turning on Bluetooth adapter on the device.

Link copied to clipboard
abstract fun tearDownSimulation()

Removes all active central manager instances and peripherals from the simulation.