engage/generated/unity_engine/
androidreflection.rs1#[cfg(feature = "unity_engine-androidreflection-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/androidreflection/AndroidReflection.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "AndroidReflection")]
12 #[parent(crate::system::object::Object)]
13 pub struct AndroidReflection {
14 #[static_field]
15 #[rename(name = "s_ReflectionHelperClass")]
16 pub s_reflection_helper_class: crate::unity_engine::globaljavaobjectref::GlobalJavaObjectRef,
17 #[static_field]
18 #[rename(name = "s_ReflectionHelperGetConstructorID")]
19 pub s_reflection_helper_get_constructor_id: ::unity::IntPtr,
20 #[static_field]
21 #[rename(name = "s_ReflectionHelperGetMethodID")]
22 pub s_reflection_helper_get_method_id: ::unity::IntPtr,
23 #[static_field]
24 #[rename(name = "s_ReflectionHelperGetFieldID")]
25 pub s_reflection_helper_get_field_id: ::unity::IntPtr,
26 #[static_field]
27 #[rename(name = "s_ReflectionHelperGetFieldSignature")]
28 pub s_reflection_helper_get_field_signature: ::unity::IntPtr,
29 #[static_field]
30 #[rename(name = "s_ReflectionHelperNewProxyInstance")]
31 pub s_reflection_helper_new_proxy_instance: ::unity::IntPtr,
32 #[static_field]
33 #[rename(name = "s_ReflectionHelperSetNativeExceptionOnProxy")]
34 pub s_reflection_helper_set_native_exception_on_proxy: ::unity::IntPtr,
35 #[static_field]
36 #[rename(name = "s_FieldGetDeclaringClass")]
37 pub s_field_get_declaring_class: ::unity::IntPtr,
38 }
39}
40
41#[cfg(feature = "unity_engine-androidreflection-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-androidreflection")]
45impl AndroidReflection {
46 #[doc = "`IsPrimitive(::unity::SystemType)` overload"]
47 pub fn is_primitive(t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
48 unsafe {
49 ::unity::il2cpp_call!((::unity::module_base()+0x3f14fb0usize)as*mut u8,bool;
50(::unity::SystemType)::core::convert::Into::into(t))
51 }
52 }
53
54 #[doc = "`IsAssignableFrom(::unity::SystemType, ::unity::SystemType)` overload"]
55 pub fn is_assignable_from(t: impl ::core::convert::Into<::unity::SystemType>, from: impl ::core::convert::Into<::unity::SystemType>) -> bool {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x3f14fc0usize)as*mut u8,bool;
58(::unity::SystemType)::core::convert::Into::into(t),(::unity::SystemType)::core::convert::Into::into(from))
59 }
60 }
61
62 #[doc = "`GetStaticMethodID(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
63 pub fn get_static_method_id(
64 clazz: impl ::core::convert::Into<::unity::Il2CppString>,
65 method_name: impl ::core::convert::Into<::unity::Il2CppString>,
66 signature: impl ::core::convert::Into<::unity::Il2CppString>,
67 ) -> ::unity::IntPtr {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x3f14fd0usize)as*mut u8, ::unity::IntPtr;
70(::unity::Il2CppString)::core::convert::Into::into(clazz),(::unity::Il2CppString)::core::convert::Into::into(method_name),(::unity::Il2CppString)::core::convert::Into::into(signature))
71 }
72 }
73
74 #[doc = "`GetMethodID(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
75 pub fn get_method_id(
76 clazz: impl ::core::convert::Into<::unity::Il2CppString>,
77 method_name: impl ::core::convert::Into<::unity::Il2CppString>,
78 signature: impl ::core::convert::Into<::unity::Il2CppString>,
79 ) -> ::unity::IntPtr {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x3f150f0usize)as*mut u8, ::unity::IntPtr;
82(::unity::Il2CppString)::core::convert::Into::into(clazz),(::unity::Il2CppString)::core::convert::Into::into(method_name),(::unity::Il2CppString)::core::convert::Into::into(signature))
83 }
84 }
85
86 #[doc = "`GetConstructorMember(::unity::IntPtr, ::unity::Il2CppString)` overload"]
87 pub fn get_constructor_member(
88 jclass: impl ::core::convert::Into<::unity::IntPtr>,
89 signature: impl ::core::convert::Into<::unity::Il2CppString>,
90 ) -> ::unity::IntPtr {
91 unsafe {
92 ::unity::il2cpp_call!((::unity::module_base()+0x3f15210usize)as*mut u8, ::unity::IntPtr;
93(::unity::IntPtr)::core::convert::Into::into(jclass),(::unity::Il2CppString)::core::convert::Into::into(signature))
94 }
95 }
96
97 #[doc = "`GetMethodMember(::unity::IntPtr, ::unity::Il2CppString, ::unity::Il2CppString, bool)` overload"]
98 pub fn get_method_member(
99 jclass: impl ::core::convert::Into<::unity::IntPtr>,
100 method_name: impl ::core::convert::Into<::unity::Il2CppString>,
101 signature: impl ::core::convert::Into<::unity::Il2CppString>,
102 is_static: impl ::core::convert::Into<bool>,
103 ) -> ::unity::IntPtr {
104 unsafe {
105 ::unity::il2cpp_call!((::unity::module_base()+0x3f153f0usize)as*mut u8, ::unity::IntPtr;
106(::unity::IntPtr)::core::convert::Into::into(jclass),(::unity::Il2CppString)::core::convert::Into::into(method_name),(::unity::Il2CppString)::core::convert::Into::into(signature),(bool)::core::convert::Into::into(is_static))
107 }
108 }
109
110 #[doc = "`NewProxyInstance(::unity::IntPtr, ::unity::IntPtr)` overload"]
111 pub fn new_proxy_instance(
112 delegate_handle: impl ::core::convert::Into<::unity::IntPtr>,
113 interfaze: impl ::core::convert::Into<::unity::IntPtr>,
114 ) -> ::unity::IntPtr {
115 unsafe {
116 ::unity::il2cpp_call!((::unity::module_base()+0x3f156a0usize)as*mut u8, ::unity::IntPtr;
117(::unity::IntPtr)::core::convert::Into::into(delegate_handle),(::unity::IntPtr)::core::convert::Into::into(interfaze))
118 }
119 }
120
121 #[doc = "`.cctor()` overload"]
122 pub fn cctor() -> () {
123 unsafe {
124 ::unity::il2cpp_call!((::unity::module_base()+0x3f15780usize)as*mut u8,();
125 )
126 }
127 }
128}
129
130#[cfg(feature = "unity_engine-androidreflection")]
131impl AndroidReflection {
132 pub fn is_primitive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
134 }
135
136 pub fn is_assignable_from_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
138 }
139
140 pub fn get_static_method_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
142 }
143
144 pub fn get_method_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
146 }
147
148 pub fn get_constructor_member_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
150 }
151
152 pub fn get_method_member_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
154 }
155
156 pub fn new_proxy_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
158 }
159
160 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
162 }
163}
164
165#[cfg(feature = "unity_engine-androidreflection")]
166#[doc(hidden)]
167pub mod prelude {
168 pub use super::{AndroidReflection, IAndroidReflection};
169 pub use crate::system::object::IObject;
170 #[cfg(feature = "system-object")]
171 pub use crate::system::object::IObjectMethods;
172}