SemanticsPropertyReceiver

interface SemanticsPropertyReceiver

Known direct subclasses
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

set

Added in 1.0.0
operator fun <T : Any?> set(key: SemanticsPropertyKey<T>, value: T): Unit

Extension properties

contentDescription

var SemanticsPropertyReceiver.contentDescriptionString

Developer-set content description of the semantics node, for use in testing, accessibility and similar use cases.

testTag

var SemanticsPropertyReceiver.testTagString

Test tag attached to this Glance composable node.

This is a free form String and can be used to find nodes in testing frameworks.