SemanticsService
Inherits: Service
Allows access to the platform's accessibility services.
Methods
-
announce_message–Sends a semantic announcement with the given
message. This should preferably -
announce_tooltip–Sends a semantic announcement of a tooltip. Currently honored on Android only.
Methods#
announce_message
#
announce_message(
message: str,
rtl: bool = False,
assertiveness: Assertiveness = POLITE,
)
Sends a semantic announcement with the given message. This should preferably
be used for announcements that are not seamlessly announced by the system as a
result of a UI state change.
rtl is a boolean and indicates the text direction of the message.
The assertiveness level of the announcement is only supported by the web
engine and has no effect on other platforms. Value is an Assertiveness enum
and can either be Assertiveness.ASSERTIVE or Assertiveness.POLITE (default).