pub trait View_OnClickListener:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/view/View$OnClickListener";
const OBJECT_SIG: &'static str = "Landroid/view/View$OnClickListener;";
const DIM: u8 = 0u8;
// Required method
fn on_click(&self, v: View);
}
Expand description
当视图被点击时调用的回调的接口定义。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/view/View$OnClickListener"
const CLASS: &'static str = "android/view/View$OnClickListener"
android/view/View$OnClickListener
Sourceconst OBJECT_SIG: &'static str = "Landroid/view/View$OnClickListener;"
const OBJECT_SIG: &'static str = "Landroid/view/View$OnClickListener;"
Landroid/view/View$OnClickListener;
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.