pub trait View_OnKeyListener:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/view/View$OnKeyListener";
const OBJECT_SIG: &'static str = "Landroid/view/View$OnKeyListener;";
const DIM: u8 = 0u8;
// Required method
fn on_key(&self, v: View, key_code: i32, event: KeyEvent) -> bool;
}
Expand description
当硬件按键事件被分派到此视图时,要调用的回调的接口定义。回调将在按键事件被提供给视图之前被调用。 这仅适用于硬件键盘;软件输入法没有义务触发此侦听器。
Provided Associated Constants§
Sourceconst OBJECT_SIG: &'static str = "Landroid/view/View$OnKeyListener;"
const OBJECT_SIG: &'static str = "Landroid/view/View$OnKeyListener;"
Landroid/view/View$OnKeyListener;
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.