BadgeTileSchema

@Serializable
@SerialName(value = "Badge")
data class BadgeTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val content: String? = null) : TileSchema

Renders a Material 3 Badge. When content is non-null it is rendered as the badge's text label and the badge takes its larger, pill-shaped form; when null the badge is the small empty dot.

Triggers dispatched: none. The badge emits no trigger and is not clickable, so any events declared on it are never fired.

Notes: this tile is a standalone badge, not a BadgedBox — it does not attach itself to a sibling. Position it yourself, e.g. inside a Box aligned over the tile it decorates.

Constructors

Link copied to clipboard
constructor(id: String, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, visibility: TileSchema.Visibility, content: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "content")
val content: String?
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
Link copied to clipboard
@SerialName(value = "visibility")
open override val visibility: TileSchema.Visibility

Functions

Link copied to clipboard
open fun isGone(): Boolean
Link copied to clipboard
open fun isVisible(): Boolean