SemanticsPropertyKey
class SemanticsPropertyKey<T : Any?>
SemanticsPropertyKey is the infrastructure for setting key/value pairs inside semantics block in a type-safe way. Each key has one particular statically defined value type T.
Summary
Public constructors |
|---|
<T : Any?> SemanticsPropertyKey(name: String, mergePolicy: (T, T?) -> T?) |
Public functions |
|
|---|---|
T? |
merge(parentValue: T?, childValue: T) |
Public constructors
SemanticsPropertyKey
<T : Any?> SemanticsPropertyKey(
name: String,
mergePolicy: (T, T?) -> T? = { parentValue, childValue -> parentValue ?: childValue }
)