Package-level declarations

Types

Link copied to clipboard

Interface representing bluetooth gatt characteristic. It's task is to hide an implementation which can be both NativeBluetoothGattCharacteristic (which is a wrapper around native Android BluetoothGattCharacteristic) or MockBluetoothGattCharacteristic. The role of an interface is to hide a detailed implementation and separate native Android BluetoothGattCharacteristic for mock variant as it can't be unit tested.

Link copied to clipboard

Interface representing bluetooth gatt descriptor. It's task is to hide an implementation which can be both NativeBluetoothGattDescriptor (which is a wrapper around native Android BluetoothGattDescriptor) or MockBluetoothGattDescriptor. The role of an interface is to hide a detailed implementation and separate native Android BluetoothGattDescriptor for mock variant as it can't be unit tested.

Link copied to clipboard
sealed interface IBluetoothGattService

Interface representing bluetooth gatt service. It's task is to hide an implementation which can be both NativeBluetoothGattService (which is a wrapper around native Android BluetoothGattService) or MockBluetoothGattService. The role of an interface is to hide a detailed implementation and separate native Android BluetoothGattService for mock variant as it can't be unit tested.

Link copied to clipboard

Mock variant of the characteristic. It's special feature is that it is independent from Android dependencies and can be used for unit testing.

Link copied to clipboard
data class MockBluetoothGattDescriptor(val uuid: UUID, val permissions: Int, val characteristic: IBluetoothGattCharacteristic, var value: DataByteArray = DataByteArray()) : IBluetoothGattDescriptor

Mock variant of the descriptor. It's special feature is that it is independent from Android dependencies and can be used for unit testing.

Link copied to clipboard
data class MockBluetoothGattService(val uuid: UUID, val type: Int, _characteristics: List<IBluetoothGattCharacteristic>) : IBluetoothGattService

Mock variant of the service. It's special feature is that it is independent from Android dependencies and can be used for unit testing.

Link copied to clipboard

Native variant of a characteristic. It's a wrapper around BluetoothGattCharacteristic.

Link copied to clipboard

Native variant of a descriptor. It's a wrapper around BluetoothGattDescriptor.

Link copied to clipboard

Native variant of a service. It's a wrapper around BluetoothGattService.