getTalkbackDescription

Creates the text that Google's TalkBack screen reader will read aloud for a given View. This may be any combination of the View's text, contentDescription, and the text and contentDescription of any ancestor View.

This description is generally ported over from Google's TalkBack screen reader, and this should be kept up to date with their implementation (as much as necessary). Details can be seen in their source code here:

https://github.com/google/talkback/compositor/src/main/res/raw/compositor.json - search for "get_description_for_tree", "append_description_for_tree", "description_for_tree_nodes"

Return

String representing what talkback will say when a View is focused.

Parameters

view

The View to evaluate.