Add explanation about the purpose of accessibility heading and use case apps should consider.

Change-Id: I01bdd1fc89d54e62e9ce1f8dc15a58d13c56fabc
Test: N/A, documentation chang
This commit is contained in:
Caren Chang
2022-07-13 23:27:21 +00:00
parent d1a6cd9185
commit 02bbf4b30c

View File

@@ -12810,6 +12810,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
/**
* Set if view is a heading for a section of content for accessibility purposes.
* <p>
* Users of some accessibility services can choose to navigate between headings
* instead of between paragraphs, words, etc. Apps that provide headings on
* sections of text can help the text navigation experience.
*
* @param isHeading {@code true} if the view is a heading, {@code false} otherwise.
*