This interface provides the ability to speak a given string using screen readers.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Messages interrupt the current speech, but only when the focus is on the window of the calling applicationstatic final int
Messages do not interrupt the current speech, they are spoken after the screen reader has spoken the current phrase -
Method Summary
Modifier and TypeMethodDescriptionvoid
announce
(Accessible a, String str, int priority) This method makes an announcement with the specified priority from an accessible to which the announcing relates
-
Field Details
-
ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUT
static final int ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUTMessages do not interrupt the current speech, they are spoken after the screen reader has spoken the current phrase- See Also:
-
ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUT
static final int ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUTMessages interrupt the current speech, but only when the focus is on the window of the calling application- See Also:
-
-
Method Details
-
announce
This method makes an announcement with the specified priority from an accessible to which the announcing relates- Parameters:
a
- an accessible to which the announcing relatesstr
- string for announcingpriority
- priority for announcing
-