Trait accesskit::ActionHandler[][src]

pub trait ActionHandler: Send + Sync {
    fn do_action(&self, request: ActionRequest);
}
Expand description

Handles requests from assistive technologies or other clients.

Required methods

Perform the requested action. If the requested action is not supported, this method must do nothing.

This method may be called on any thread. In particular, on platforms with a designated UI thread, this method may or may not be called on that thread. Implementations must correctly handle both cases.

This method may queue the request and handle it asynchronously. This behavior is preferred over blocking, e.g. when dispatching the request to another thread.

Implementors