MockConnectedDevice

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

Constructors

Link copied to clipboard
actual constructor(identifier: Identifier)
actual constructor(identifier: Identifier)
expect constructor(identifier: Identifier = randomIdentifier())

Properties

Link copied to clipboard
open override val cbCentral: CBCentral
Link copied to clipboard
open override val device: BluetoothDevice
Link copied to clipboard
actual open override val identifier: Identifier

the Identifier of the device

actual open override val identifier: Identifier

the Identifier of the device

expect open override val identifier: Identifier

the Identifier of the device