Package com.jetbrains

Interface AccessibleAnnouncer


@Service @Provided public interface AccessibleAnnouncer
This interface provides the ability to speak a given string using screen readers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Messages interrupt the current speech, but only when the focus is on the window of the calling application
    static 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 Type
    Method
    Description
    void
    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_OUTPUT
      Messages 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_OUTPUT
      Messages interrupt the current speech, but only when the focus is on the window of the calling application
      See Also:
  • Method Details

    • announce

      void announce(Accessible a, String str, int priority)
      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 relates
      str - string for announcing
      priority - priority for announcing