droid_wrap::android::view

Trait View_OnLongClickListener

Source
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§

Source

const CLASS: &'static str = "android/view/View$OnLongClickListener"

android/view/View$OnLongClickListener

Source

const OBJECT_SIG: &'static str = "Landroid/view/View$OnLongClickListener;"

Landroid/view/View$OnLongClickListener;

Source

const DIM: u8 = 0u8

数组维度

Required Methods§

Source

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.

Implementors§