androidx.xr.compose.subspace.semantics
Extension functions summary
SubspaceModifier |
SubspaceModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit)Add semantics key/value pairs to the layout node, for use in testing, accessibility, etc. |
SubspaceModifier |
SubspaceModifier.testTag(tag: String)Applies a tag to allow modified element to be found in tests. |
Extension functions
semantics
fun SubspaceModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit): SubspaceModifier
Add semantics key/value pairs to the layout node, for use in testing, accessibility, etc.
testTag
fun SubspaceModifier.testTag(tag: String): SubspaceModifier
Applies a tag to allow modified element to be found in tests.
This is a convenience method for a semantics that sets SemanticsPropertyReceiver.testTag.