pub enum InputMethodEditorRequest {
SetKeyboardType {
keyboard_type: KeyboardType,
control_handle: InputMethodEditorControlHandle,
},
SetState {
state: TextInputState,
control_handle: InputMethodEditorControlHandle,
},
InjectInput {
event: InputEvent,
control_handle: InputMethodEditorControlHandle,
},
DispatchKey3 {
event: KeyEvent,
responder: InputMethodEditorDispatchKey3Responder,
},
Show {
control_handle: InputMethodEditorControlHandle,
},
Hide {
control_handle: InputMethodEditorControlHandle,
},
}
Expand description
A interface for interacting with a text input control.
Variants§
SetKeyboardType
SetState
InjectInput
DispatchKey3
Show
Fields
§
control_handle: InputMethodEditorControlHandle
Hide
Fields
§
control_handle: InputMethodEditorControlHandle
Implementations§
source§impl InputMethodEditorRequest
impl InputMethodEditorRequest
pub fn into_set_keyboard_type( self ) -> Option<(KeyboardType, InputMethodEditorControlHandle)>
pub fn into_set_state( self ) -> Option<(TextInputState, InputMethodEditorControlHandle)>
pub fn into_inject_input( self ) -> Option<(InputEvent, InputMethodEditorControlHandle)>
pub fn into_dispatch_key3( self ) -> Option<(KeyEvent, InputMethodEditorDispatchKey3Responder)>
pub fn into_show(self) -> Option<InputMethodEditorControlHandle>
pub fn into_hide(self) -> Option<InputMethodEditorControlHandle>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL