pub enum KeyboardInputListenerRequest {
ReportReady {
responder: KeyboardInputListenerReportReadyResponder,
},
ReportTextInput {
payload: KeyboardInputListenerReportTextInputRequest,
control_handle: KeyboardInputListenerControlHandle,
},
}
Expand description
A tool for client applications to report text input to interested parties (e.g. a test fixture).
NOTE: The reporter is the client of this service.
Canonical usage is for a test to inject text via fuchsia.ui.test.input.Keyboad, and wait for the client under test to report back that it received the injected text via fuchsia.ui.test.input.KeyboardInputListener.
NOTE: This protocol is implemented by OOT code. Use versioning to make changes to this protocol.
Variants§
ReportReady
Notify that the client is ready to receive text input. Clients that need to complete their setup to be able to continue with testing should call this method, so that the listener can wait until they are ready to proceed with testing.
Fields
responder: KeyboardInputListenerReportReadyResponder
ReportTextInput
Notify the listener of the text string generated by the set of key events received by the application.
Fields
control_handle: KeyboardInputListenerControlHandle
Implementations§
Source§impl KeyboardInputListenerRequest
impl KeyboardInputListenerRequest
pub fn into_report_ready( self, ) -> Option<KeyboardInputListenerReportReadyResponder>
pub fn into_report_text_input( self, ) -> Option<(KeyboardInputListenerReportTextInputRequest, KeyboardInputListenerControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL