androidx.glance.semantics
Interfaces
SemanticsPropertyReceiver |
SemanticsPropertyReceiver is the scope provided by semantics {} blocks, letting you set key/value pairs primarily via extension functions. |
Classes
SemanticsConfiguration |
Describes the semantics information associated with the owning component. |
SemanticsPropertyKey |
SemanticsPropertyKey is the infrastructure for setting key/value pairs inside semantics block in a type-safe way. |
Objects
SemanticsProperties |
General semantics properties, mainly used for accessibility and testing. |
Extension functions summary
GlanceModifier |
GlanceModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit) Add semantics for use in testing, accessibility and similar use cases. |
Extension properties summary
String |
Developer-set content description of the semantics node, for use in testing, accessibility and similar use cases. |
String |
Test tag attached to this Glance composable node. |
Extension functions
semantics
fun GlanceModifier.semantics(properties: SemanticsPropertyReceiver.() -> Unit): GlanceModifier
Add semantics for use in testing, accessibility and similar use cases.
Extension properties
contentDescription
var SemanticsPropertyReceiver.contentDescription: String
Developer-set content description of the semantics node, for use in testing, accessibility and similar use cases.
testTag
var SemanticsPropertyReceiver.testTag: String
Test tag attached to this Glance composable node.
This is a free form String and can be used to find nodes in testing frameworks.