PreviewRemoteCharacteristic
A remote characteristic that can be used for compose previews.
If has no-op implementation.
Constructors
Link copied to clipboard
constructor(shortUuid: Int, instanceId: Int = 0, properties: Set<CharacteristicProperty> = emptySet(), isNotifying: Boolean = false, builder: CharacteristicScope.() -> Unit = {})
Creates a preview characteristic from a Characteristic Scope.
constructor(uuid: Uuid, instanceId: Int = 0, properties: Set<CharacteristicProperty> = emptySet(), isNotifying: Boolean = false, builder: CharacteristicScope.() -> Unit = {})
Creates a preview characteristic from a Characteristic Scope.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun subscribe(onSubscription: suspend RemoteCharacteristic.() -> Unit): Flow<ByteArray>
Link copied to clipboard
open suspend override fun waitForValueChange(rawDataFilter: (ByteArray) -> Boolean, merge: suspend (ByteArray, ByteArray, Int) -> MergeResult, filter: (ByteArray) -> Boolean, trigger: suspend RemoteCharacteristic.() -> Unit): ByteArray