class Listener

Defined at line 375 of file fidling/gen/sdk/fidl/fuchsia.accessibility.gesture/fuchsia.accessibility.gesture/hlcpp/fuchsia/accessibility/gesture/cpp/fidl.h

An interface to listen for accessibility gestures.

Accessibility services offer a set of gestures defined in Type above, which

can be targeted by a system UI.

Generally, in a touch screen system, there is a set of system-wide gestures

which can be performed anywhere, triggering an action that changes some

state of the UI.

For example, some can offer a way to close an application and go back to

their home screen, while others can offer a way to bring a list of running

applications that users can choose from.

Because those gestures can conflict with assistive technology gestures,

accessibility services offer some alternative ones which can be bound to the

UI actions.

Public Methods

void ~Listener ()
void OnGesture (::fuchsia::accessibility::gesture::Type gesture_type, OnGestureCallback callback)

When accessibility services detect a gesture, the listener is informed

of which gesture was performed. The listener has the chance to handle

the gesture, setting the result in |handled|. In addition, an

|utterance| is also passed back to accessibility, with a custom message

to be spoken. The message is expected to be localized, matching the

same locale that the UI component is displaying its content.

If the utterance is empty, it is assumed that no spoken output is

necessary to describe the result of the action.