SemanticsConfiguration


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
Cmn
SemanticsConfiguration

Returns an exact copy of this configuration.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
operator T

Retrieves the value for the given property, if one has been set.

Cmn
T
Any?> getOrElse(key: SemanticsPropertyKey, defaultValue: () -> T)
Cmn
T?
Any?> getOrElseNullable(
    key: SemanticsPropertyKey,
    defaultValue: () -> T?
)
Cmn
open Int
Cmn
open operator Iterator<Map.Entry<SemanticsPropertyKey<*>, Any?>>
Cmn
open operator Unit
Any?> set(key: SemanticsPropertyKey, value: T)
Cmn
open String
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?
Cmn

Public constructors

SemanticsConfiguration

SemanticsConfiguration()

Public functions

contains

operator fun Any?> contains(key: SemanticsPropertyKey): Boolean

copy

fun copy(): SemanticsConfiguration

Returns an exact copy of this configuration.

equals

open operator fun equals(other: Any?): Boolean

get

operator fun Any?> get(key: SemanticsPropertyKey): T

Retrieves the value for the given property, if one has been set. If a value has not been set, throws IllegalStateException

getOrElse

fun Any?> getOrElse(key: SemanticsPropertyKey, defaultValue: () -> T): T

getOrElseNullable

fun Any?> getOrElseNullable(
    key: SemanticsPropertyKey,
    defaultValue: () -> T?
): T?

hashCode

open fun hashCode(): Int

iterator

open operator fun iterator(): Iterator<Map.Entry<SemanticsPropertyKey<*>, Any?>>

set

open operator fun Any?> set(key: SemanticsPropertyKey, value: T): Unit

toString

open fun toString(): String

Public properties

isClearingSemantics

var isClearingSemanticsBoolean

isMergingSemanticsOfDescendants

var isMergingSemanticsOfDescendantsBoolean

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.

Extension functions