SemanticsConfiguration

Class

Android
class SemanticsConfiguration : SemanticsPropertyReceiver

Describes the semantics information associated with the owning component.

Functions

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

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

Retrieves the value for the given property, if one has been set, If a value has not been set, returns the provided default value.

fun <T> getOrNull(key: SemanticsPropertyKey<T>): T?

Retrieves the value for the given property, if one has been set, If a value has not been set, returns null