StoredWithSceneModelDelegate

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Defines the model supports subscription.

Link copied to clipboard
abstract val meshNetwork: MeshNetwork
Link copied to clipboard

Map of supported message types.

Link copied to clipboard
val modelEventFlow: SharedFlow<ModelEvent>

Flow of model events.

Link copied to clipboard

Lambda function that returns a MeshMessage to be published.

Functions

Link copied to clipboard

This method should be called whenever the State of a local model changes due to a different action than recalling a scene.

Link copied to clipboard
suspend fun publish(manager: MeshNetworkManager): MessageHandle?
suspend fun publish(message: MeshMessage, manager: MeshNetworkManager): MessageHandle?
Link copied to clipboard
abstract fun recall(scene: SceneNumber, transitionTime: TransitionTime?, delay: UByte)

This method should recall the States of the Model that were stored with the given Scene number.

Link copied to clipboard
abstract fun store(scene: SceneNumber)

This method should store the current States of the Model and associate them with the given Scene number.