MockLocalServiceWrapper

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

Constructors

Link copied to clipboard
actual constructor(uuid: UUID)
actual constructor(uuid: UUID)
expect constructor(uuid: UUID)

Properties

Link copied to clipboard
open override val identity: AttributeIdentity
open override val identity: AttributeIdentity
Link copied to clipboard
actual open override val uuid: UUID

the UUID of the service

actual open override val uuid: UUID

the UUID of the service

expect open override val uuid: UUID

the UUID of the service

Functions

Link copied to clipboard
actual open override fun addCharacteristic(characteristic: LocalCharacteristicWrapper)
actual open override fun addCharacteristic(characteristic: LocalCharacteristicWrapper)
expect open override fun addCharacteristic(characteristic: LocalCharacteristicWrapper)
Link copied to clipboard
actual open override fun addIncludedService(service: LocalServiceWrapper)
actual open override fun addIncludedService(service: LocalServiceWrapper)
expect open override fun addIncludedService(service: LocalServiceWrapper)
Link copied to clipboard
open override fun addTo(gattServer: BluetoothGattServer): Boolean
open override fun addTo(serverWrapper: KalugaBluetoothServerWrapper)
Link copied to clipboard
open override fun addToParent(parent: BluetoothGattService)
open override fun addToParent(parent: CBMutableService)
Link copied to clipboard
open override fun removeFrom(gattServer: BluetoothGattServer)
open override fun removeFrom(serverWrapper: KalugaBluetoothServerWrapper)