Hello everyone, Is there a way to retrieve the ful...
# compose-android
f
Hello everyone, Is there a way to retrieve the full content description from a composable? I’ve been using
SemanticsConfiguration
, but I’m wondering if it’s possible to get a value similar to what TalkBack would announce. Currently, I'm using the following code:
node.config.getOrNull(SemanticsProperties.ContentDescription)
This only returns items that have a content description in order, which means every
Text()
inside the composable is returned by this other Key
node.config.getOrNull(SemanticsProperties.Text)
However, I haven't found a way to merge both pieces of information to get the full content description. Any suggestions?
node = SemanticsNode
config = SemanticsConfiguration
I'm currently trying to improve the Roborazzi implementation, so here's a reference https://github.com/takahirom/roborazzi/pull/430/files#diff-316d8deb32fdc5992414b8d01bf4ac6e94ce5092bd9562c97656f051983f2b71