Class

SemanticsConfiguration

Describes the semantics information associated with the owning component.

Source set: Android
public class SemanticsConfiguration : SemanticsPropertyReceiver

Describes the semantics information associated with the owning component.

Functions

set

Source set: Android
override fun <T> set(key: SemanticsPropertyKey<T>, value: T)

get

Source set: Android
public 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

getOrElseNullable

Source set: Android
public 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.

getOrNull

Source set: Android
public 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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: