SetColorModeEventSchema

@Serializable
@SerialName(value = "SetColorMode")
data class SetColorModeEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val colorMode: SetColorModeEventSchema.ColorMode) : EventSchema

Sets the app's color mode — light, dark, or following the system setting — overriding whatever was set before. Unlike SetTheme, which swaps the Material color roles themselves, this only decides which of the already-installed light/dark schemes is active.

incomingData consumed: not used.

Triggers fired:

  • OnSuccessEventTrigger — always, after the color mode is applied. No data is passed downstream.

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "colorMode")
val colorMode: SetColorModeEventSchema.ColorMode
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?

This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.

Link copied to clipboard
@SerialName(value = "id")
open override val id: String

Unique identifier — how TriggerEvent/UpdateEvents address this event by id. Defaults to a random id when omitted from the DSL.

Link copied to clipboard
@SerialName(value = "trigger")
open override val trigger: EventTrigger

The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.