droid_wrap::android::view

Trait View_OnClickListener

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

Source

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

android/view/View$OnClickListener

Source

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

Landroid/view/View$OnClickListener;

Source

const DIM: u8 = 0u8

数组维度

Required Methods§

Source

fn on_click(&self, v: View)

当单击某个视图时调用。 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§