droid_wrap

Trait JProxy

Source
pub trait JProxy: JObjNew + JObjRef {
    // Required method
    fn new(fields: Self::Fields) -> Arc<Self>;

    // Provided method
    fn release(&self) { ... }
}
Expand description

用于Java动态代理的创建和删除。

Required Methods§

Source

fn new(fields: Self::Fields) -> Arc<Self>

创建一个代理对象。 fields 传递给struct的自定义字段。

Provided Methods§

Source

fn release(&self)

释放代理对象,解除绑定的handler。

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§