Property

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Property(val tag: Int)

Annotates a Widget property which represents a property on the associated UI widget. Properties in a Widget class must have a unique tag among all @Property annotations in the class.

@Widget(1)
data class Text(
@Property(1) val text: String,
)

Properties

Link copied to clipboard
val tag: Int