droid_wrap

Trait JObjRef

Source
pub trait JObjRef {
    // Required method
    fn java_ref(&self) -> GlobalRef;
}
Expand description

JObjectRef trait提供从任何数据类型获取java对象的全局引用。 rust使用Arc管理,无须手动释放java的全局引用。

Required Methods§

Source

fn java_ref(&self) -> GlobalRef

获取java对象引用。

Implementations on Foreign Types§

Source§

impl JObjRef for &[u8]

Source§

impl JObjRef for &[String]

Source§

impl JObjRef for String

Source§

impl<T: JObjRef + JObjNew> JObjRef for Option<T>
where <T as JObjNew>::Fields: Default,

Source§

impl<T: JObjRef> JObjRef for &T

Source§

impl<T: JObjRef> JObjRef for Rc<T>

Source§

impl<T: JObjRef> JObjRef for Arc<T>

Source§

impl<T: JObjRef> JObjRef for Mutex<T>

Implementors§

Source§

impl JObjRef for Activity

Source§

impl JObjRef for PackageManager

Source§

impl JObjRef for ComponentName

Source§

impl JObjRef for Context

Source§

impl JObjRef for ContextWrapper

Source§

impl JObjRef for Intent

Source§

impl JObjRef for Canvas

Source§

impl JObjRef for Point

Source§

impl JObjRef for Rect

Source§

impl JObjRef for SurfaceTexture

Source§

impl JObjRef for Camera

Source§

impl JObjRef for Camera_Area

Source§

impl JObjRef for Camera_CameraInfo

Source§

impl JObjRef for Camera_Face

Source§

impl JObjRef for Camera_Parameters

Source§

impl JObjRef for Camera_Size

Source§

impl JObjRef for AudioManager

Source§

impl JObjRef for Build

Source§

impl JObjRef for Build_VERSION

Source§

impl JObjRef for Build_VERSION_CODES

Source§

impl JObjRef for Bundle

Source§

impl JObjRef for SystemProperties

Source§

impl JObjRef for SystemProperties_Handle

Source§

impl JObjRef for VibrationEffect

Source§

impl JObjRef for Vibrator

Source§

impl JObjRef for VibratorManager

Source§

impl JObjRef for Allocation

Source§

impl JObjRef for RenderScript

Source§

impl JObjRef for TextToSpeech

Source§

impl JObjRef for Manifest_permission

Source§

impl JObjRef for EditorInfo

Source§

impl JObjRef for InputMethodManager

Source§

impl JObjRef for ContextThemeWrapper

Source§

impl JObjRef for Display

Source§

impl JObjRef for InputEvent

Source§

impl JObjRef for KeyEvent

Source§

impl JObjRef for Surface

Source§

impl JObjRef for View

Source§

impl JObjRef for ViewGroup

Source§

impl JObjRef for ViewGroup_LayoutParams

Source§

impl JObjRef for ViewGroup_MarginLayoutParams

Source§

impl JObjRef for Window

Source§

impl JObjRef for Button

Source§

impl JObjRef for EditText

Source§

impl JObjRef for LinearLayout

Source§

impl JObjRef for LinearLayout_LayoutParams

Source§

impl JObjRef for TextView

Source§

impl JObjRef for DexClassLoader

Source§

impl JObjRef for InMemoryDexClassLoader

Source§

impl JObjRef for File

Source§

impl JObjRef for Executable

Source§

impl JObjRef for Method

Source§

impl JObjRef for Boolean

Source§

impl JObjRef for ClassLoader

Source§

impl JObjRef for Float

Source§

impl JObjRef for Integer

Source§

impl JObjRef for Object

Source§

impl JObjRef for System

Source§

impl JObjRef for ByteBuffer