pub struct AndroidKeyboardDevice;Expand description
The keyboard device of the Android platform.
Implementations§
Source§impl AndroidKeyboardDevice
impl AndroidKeyboardDevice
Sourcepub fn instance() -> Option<Rc<dyn IKeyboardDevice>>
pub fn instance() -> Option<Rc<dyn IKeyboardDevice>>
The keyboard device that is registered with the locator, if there is one.
Sourcepub fn new() -> Rc<dyn IKeyboardDevice>
pub fn new() -> Rc<dyn IKeyboardDevice>
A keyboard device: the one of the framework, to which the reference adds nothing.
Sourcepub fn convert_key(key: i32) -> Key
pub fn convert_key(key: i32) -> Key
The key of the framework for a key code of the system (KeyEvent.KEYCODE_*), Key::None for a key
code the table does not have.
Auto Trait Implementations§
impl Freeze for AndroidKeyboardDevice
impl RefUnwindSafe for AndroidKeyboardDevice
impl Send for AndroidKeyboardDevice
impl Sync for AndroidKeyboardDevice
impl Unpin for AndroidKeyboardDevice
impl UnsafeUnpin for AndroidKeyboardDevice
impl UnwindSafe for AndroidKeyboardDevice
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more