Android 12 Developer Preview is here! Try it out, and give us your feedback!

SemanticsConfiguration

class SemanticsConfiguration : SemanticsPropertyReceiver, Iterable<Entry<SemanticsPropertyKey<*>, Any?>>
kotlin.Any
   ↳ androidx.compose.ui.semantics.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

Describes the semantic information associated with the owning component

Public methods
operator Boolean

SemanticsConfiguration

Returns an exact copy of this configuration.

Boolean
equals(other: Any?)

operator T

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

T
getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T)

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

Int

Iterator<Entry<SemanticsPropertyKey<*>, Any?>>

Unit
set(key: SemanticsPropertyKey<T>, value: T)

String

Extension functions
From androidx.compose.ui.semantics
T?

Inherited extension functions
From androidx.compose.ui.semantics
Unit
SemanticsPropertyReceiver.collapse(label: String? = null, action: () -> Boolean)

Action to collapse an expandable node.

Unit
SemanticsPropertyReceiver.copyText(label: String? = null, action: () -> Boolean)

Action to copy the text to the clipboard.

Unit
SemanticsPropertyReceiver.cutText(label: String? = null, action: () -> Boolean)

Action to cut the text and copy it to the clipboard.

Unit

Whether this element is a Dialog.

Unit

Whether this semantics node is disabled.

Unit
SemanticsPropertyReceiver.dismiss(label: String? = null, action: () -> Boolean)

Action to dismiss a dismissible node.

Unit
SemanticsPropertyReceiver.expand(label: String? = null, action: () -> Boolean)

Action to expand an expandable node.

Unit