public 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
isMergingSemanticsOfDescendants
public var isMergingSemanticsOfDescendants: Boolean = false
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.
isClearingSemantics
public var isClearingSemantics: Boolean = false
Functions
get
public 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
getOrElse
public fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
getOrElseNullable
public fun <T> getOrElseNullable(key: SemanticsPropertyKey<T>, defaultValue: () -> T?): T?
contains
public operator fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
copy
public fun copy(): SemanticsConfiguration
Returns an exact copy of this configuration.
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int
toString
override fun toString(): String