Package-level declarations

Types

Link copied to clipboard
class AndroidMockCharacteristicWrapper(val uuid: UUID = UUID.randomUUID(), descriptorUUIDs: List<UUID> = emptyList(), val service: ServiceWrapper, val properties: Int = 0) : MockCharacteristicWrapper
Link copied to clipboard
class AndroidMockDescriptorWrapper(val uuid: UUID = UUID.randomUUID(), val characteristic: CharacteristicWrapper) : MockDescriptorWrapper
Link copied to clipboard
Link copied to clipboard
class IOSMockCharacteristicWrapper(val uuid: <Error class: unknown class> = CBUUID(), val properties: Int = 0, descriptorUUIDs: List<<Error class: unknown class>> = emptyList())
Link copied to clipboard
class IOSMockDescriptorWrapper(val uuid: <Error class: unknown class> = CBUUID())
Link copied to clipboard
Link copied to clipboard

Mock implementation of BluetoothMonitor

Link copied to clipboard
class MockBluetoothService(val discoveredDevicesFlow: MutableStateFlow<List<Device>> = MutableStateFlow(emptyList()), val filteredDevicesFlow: MutableStateFlow<Map<Filter, List<Device>>> = MutableStateFlow(emptyMap()), val pairedDevicesFlow: MutableStateFlow<Map<Set<UUID>, List<Device>>> = MutableStateFlow(emptyMap()), val isEnabled: MutableStateFlow<Boolean> = MutableStateFlow(true), setupMocks: Boolean = true) : BluetoothService
Link copied to clipboard
Link copied to clipboard
data class MockCBPeripheralWrapper(val name: String? = null, val identifier: <Error class: unknown class> = NSUUID())
Link copied to clipboard
Link copied to clipboard

Mock implementation of Descriptor

Link copied to clipboard
Link copied to clipboard
class MockDeviceWrapper(val name: String?, val identifier: Identifier, val bondState: DeviceWrapper.BondState, setupMocks: Boolean = true) : DeviceWrapper
class MockDeviceWrapper(val name: String?, val identifier: Identifier) : DeviceWrapper
Link copied to clipboard
class MockServiceWrapper(val uuid: UUID = UUID.randomUUID(), initialCharacteristics: List<ServiceWrapperBuilder.Characteristic> = emptyList()) : ServiceWrapper
class MockServiceWrapper(val uuid: <Error class: unknown class> = UUID(), val characteristics: List<<Error class: unknown class>> = emptyList())
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
expect fun createDeviceWrapper(deviceName: String? = null, identifier: Identifier = randomIdentifier()): DeviceWrapper
Link copied to clipboard
fun createMockDevice(wrapper: DeviceWrapper, coroutineScope: CoroutineScope, connectionSettings: ConnectionSettings = ConnectionSettings( reconnectionSettings = ConnectionSettings.ReconnectionSettings.Never, ), connectionManagerBuilder: MockDeviceConnectionManager.Builder = MockDeviceConnectionManager.Builder(), createDeviceStateFlow: (DeviceConnectionManager, CoroutineContext) -> ConnectableDeviceStateFlowRepo = { manager, coroutineContext -> ConnectableDeviceStateImplRepo(connectionSettings.reconnectionSettings, manager, coroutineContext) }, builder: MockDeviceInfoBuilder.() -> Unit): DeviceImpl
fun createMockDevice(identifier: Identifier, connectionSettings: ConnectionSettings = ConnectionSettings( reconnectionSettings = ConnectionSettings.ReconnectionSettings.Never, ), connectionManagerBuilder: (ConnectionSettings) -> DeviceConnectionManager, builder: MockDeviceInfoBuilder.() -> Unit, createDeviceStateFlow: (DeviceConnectionManager, CoroutineContext) -> ConnectableDeviceStateFlowRepo = { manager, coroutineContext -> ConnectableDeviceStateImplRepo(connectionSettings.reconnectionSettings, manager, coroutineContext) }, coroutineScope: CoroutineScope): DeviceImpl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard