SemanticsConfiguration
class SemanticsConfiguration : SemanticsPropertyReceiver
Describes the semantics information associated with the owning component.
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
operator T |
<T : 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 |
T? |
<T : Any?> getOrElseNullable(Retrieves the value for the given property, if one has been set, If a value has not been set, returns the provided default value. |
T? |
<T : Any?> getOrNull(key: SemanticsPropertyKey<T>)Retrieves the value for the given property, if one has been set, If a value has not been set, returns null |
open operator Unit |
<T : Any?> set(key: SemanticsPropertyKey<T>, value: T) |
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?
Retrieves the value for the given property, if one has been set, If a value has not been set, returns the provided default value.
getOrNull
fun <T : Any?> 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