androidx.compose.ui.semantics
SemanticsConfiguration
Class · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
Describes the semantic information associated with the owning component
class SemanticsConfiguration : SemanticsPropertyReceiver, Iterable<Map.Entry<SemanticsPropertyKey<*>, Any?>>
Is a
SemanticsPropertyReceiverIterable
How to get one
Ready-made values and functions that return it
Properties
isMergingSemanticsOfDescendants
val isMergingSemanticsOfDescendants: Boolean
Whether the semantic information provided by the owning component and all of its descendants should be treated as one logical entity.
isClearingSemantics
val isClearingSemantics: Boolean
Functions
get
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
fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
getOrElseNullable
fun <T> getOrElseNullable(key: SemanticsPropertyKey<T>, defaultValue: () -> T?): T?
contains
fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
copy
fun copy(): SemanticsConfiguration
Returns an exact copy of this configuration.
Library docs
Describes the semantic information associated with the owning component
The information provided in the configuration is used to to generate the semantics tree.