SemanticsConfiguration
-
Cmn
class SemanticsConfiguration : SemanticsPropertyReceiver, Iterable
Describes the semantic information associated with the owning component
The information provided in the configuration is used to to generate the semantics tree.
Summary
Public constructors |
|
|---|---|
|
Cmn
|
Public functions |
||
|---|---|---|
operator Boolean |
<T : Any?> contains(key: SemanticsPropertyKey<T>) |
Cmn
|
SemanticsConfiguration |
copy()Returns an exact copy of this configuration. |
Cmn
|
open operator Boolean |
Cmn
|
|
operator T |
<T : Any?> get(key: SemanticsPropertyKey<T>)Retrieves the value for the given property, if one has been set. |
Cmn
|
T |
<T : Any?> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T) |
Cmn
|
T? |
<T : Any?> getOrElseNullable( |
Cmn
|
open Int |
hashCode() |
Cmn
|
open operator Iterator<Map.Entry<SemanticsPropertyKey<*>, Any?>> |
iterator() |
Cmn
|
open operator Unit |
<T : Any?> set(key: SemanticsPropertyKey<T>, value: T) |
Cmn
|
open String |
toString() |
Cmn
|
Public properties |
||
|---|---|---|
Boolean |
Cmn
|
|
Boolean |
Whether the semantic information provided by the owning component and all of its descendants should be treated as one logical entity. |
Cmn
|
Extension functions |
||
|---|---|---|
T? |
<T : Any?> SemanticsConfiguration.getOrNull(key: SemanticsPropertyKey<T>) |
Cmn
|
Public constructors
Public functions
get
operator fun <T : Any?> 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
getOrElseNullable
fun <T : Any?> getOrElseNullable(
key: SemanticsPropertyKey<T>,
defaultValue: () -> T?
): T?
Public properties
isMergingSemanticsOfDescendants
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.