public class SemanticsConfiguration :
SemanticsPropertyProvider,
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
accessibilityExtraKeys
override val accessibilityExtraKeys: Set<SemanticsPropertyKey<*>>
isMergingSemanticsOfDescendants
override 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
override 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
override public fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
getOrElseNullable
override public fun <T> getOrElseNullable(
key: SemanticsPropertyKey<T>,
defaultValue: () -> T?,
): T?
contains
override public operator fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
forEachProperty
override fun forEachProperty(action: (key: SemanticsPropertyKey<*>, value: Any?) -> Unit)
anyProperty
override fun anyProperty(
predicate: (key: SemanticsPropertyKey<*>, value: Any?) -> Boolean
): 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