SemanticsPropertyReceiver
interface SemanticsPropertyReceiver
SemanticsConfiguration |
Describes the semantics information associated with the owning component. |
SemanticsPropertyReceiver is the scope provided by semantics {} blocks, letting you set key/value pairs primarily via extension functions.
Summary
Public functions |
|
|---|---|
operator Unit |
<T : Any?> set(key: SemanticsPropertyKey<T>, value: T) |
Extension properties |
|
|---|---|
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. |
Public functions
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.