pub trait View_OnLongClickListener:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/view/View$OnLongClickListener";
const OBJECT_SIG: &'static str = "Landroid/view/View$OnLongClickListener;";
const DIM: u8 = 0u8;
// Required method
fn on_long_click(&self, v: View) -> bool;
}
Expand description
当视图被点击并保持时调用的回调的接口定义。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/view/View$OnLongClickListener"
const CLASS: &'static str = "android/view/View$OnLongClickListener"
android/view/View$OnLongClickListener
Sourceconst OBJECT_SIG: &'static str = "Landroid/view/View$OnLongClickListener;"
const OBJECT_SIG: &'static str = "Landroid/view/View$OnLongClickListener;"
Landroid/view/View$OnLongClickListener;
Required Methods§
Sourcefn on_long_click(&self, v: View) -> bool
fn on_long_click(&self, v: View) -> bool
当单击并按住某个视图时调用。
返回:如果回调消耗了长按,则返回 true,否则返回 false。
v
被单击并按住的视图。
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.