Skip to main content

IAndroidJavaObjectMethods

Trait IAndroidJavaObjectMethods 

Source
pub trait IAndroidJavaObjectMethods: IAndroidJavaObject {
    // Provided methods
    fn ctor(
        self,
        class_name: impl Into<Il2CppString>,
        args: impl Into<Array<Object>>,
    ) { ... }
    fn dispose(self) { ... }
    fn get_raw_object(self) -> IntPtr { ... }
    fn get_raw_class(self) -> IntPtr { ... }
    fn call<M0: IlType + Copy + ClassIdentity>(
        self,
        method_name: impl Into<Il2CppString>,
        args: impl Into<Array<Object>>,
    ) -> M0 { ... }
    fn call_static<M0: IlType + Copy + ClassIdentity>(
        self,
        method_name: impl Into<Il2CppString>,
        args: impl Into<Array<Object>>,
    ) -> M0 { ... }
    fn debug_print(self, msg: impl Into<Il2CppString>) { ... }
    fn android_java_object(
        self,
        class_name: impl Into<Il2CppString>,
        args: impl Into<Array<Object>>,
    ) { ... }
    fn ctor_2(self, jobject: impl Into<IntPtr>) { ... }
    fn ctor_3(self) { ... }
    fn finalize(self) { ... }
    fn dispose_2(self, disposing: impl Into<bool>) { ... }
}

Provided Methods§

Source

fn ctor( self, class_name: impl Into<Il2CppString>, args: impl Into<Array<Object>>, )

.ctor(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>) overload

Source

fn dispose(self)

Dispose() overload

Source

fn get_raw_object(self) -> IntPtr

GetRawObject() overload

Source

fn get_raw_class(self) -> IntPtr

GetRawClass() overload

Source

fn call<M0: IlType + Copy + ClassIdentity>( self, method_name: impl Into<Il2CppString>, args: impl Into<Array<Object>>, ) -> M0

Source

fn call_static<M0: IlType + Copy + ClassIdentity>( self, method_name: impl Into<Il2CppString>, args: impl Into<Array<Object>>, ) -> M0

Source

fn debug_print(self, msg: impl Into<Il2CppString>)

DebugPrint(::unity::Il2CppString) overload

Source

fn android_java_object( self, class_name: impl Into<Il2CppString>, args: impl Into<Array<Object>>, )

_AndroidJavaObject(::unity::Il2CppString, ::unity::Array<crate::system::object::Object>) overload

Source

fn ctor_2(self, jobject: impl Into<IntPtr>)

.ctor(::unity::IntPtr) overload

Source

fn ctor_3(self)

.ctor() overload

Source

fn finalize(self)

Finalize() overload

Source

fn dispose_2(self, disposing: impl Into<bool>)

Dispose(bool) overload

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§

Source§

impl<__T: IAndroidJavaObject> IAndroidJavaObjectMethods for __T

Available on crate feature unity_engine-androidjavaobject only.