SemanticsConfiguration
Class
Common
class SemanticsConfiguration :
SemanticsPropertyReceiver, Iterable<Map.Entry<SemanticsPropertyKey<*>, Any?>>
Describes the semantic information associated with the owning component
The information provided in the configuration is used to to generate the semantics tree.
Properties
Common
var isMergingSemanticsOfDescendants: Boolean
Whether the semantic information provided by the owning component and all of its descendants should be treated as one logical entity.
If set to true, the descendants of the owning component's SemanticsNode
will merge their
semantic information into the SemanticsNode
representing the owning component.
Common
var isClearingSemantics: Boolean
Functions
operator fun <T> get(key: SemanticsPropertyKey<T>): T
Retrieves the value for the given property, if one has been set. If a value has not been set,
throws IllegalStateException
fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
fun <T> getOrElseNullable(key: SemanticsPropertyKey<T>, defaultValue: () -> T?): T?
operator fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
fun copy(): SemanticsConfiguration
Returns an exact copy of this configuration.