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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputMethodEditorRequest
impl !RefUnwindSafe for InputMethodEditorRequest
impl Send for InputMethodEditorRequest
impl Sync for InputMethodEditorRequest
impl Unpin for InputMethodEditorRequest
impl !UnwindSafe for InputMethodEditorRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more