1#[cfg(feature = "unity_engine-androidjnisafe-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/androidjnisafe/AndroidJNISafe.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "AndroidJNISafe")]
12 #[parent(crate::system::object::Object)]
13 pub struct AndroidJNISafe {}
14}
15
16#[cfg(feature = "unity_engine-androidjnisafe-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-androidjnisafe")]
20impl AndroidJNISafe {
21 #[doc = "`CheckException()` overload"]
22 pub fn check_exception() -> () {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x3f0f4d0usize)as*mut u8,();
25 )
26 }
27 }
28
29 #[doc = "`DeleteGlobalRef(::unity::IntPtr)` overload"]
30 pub fn delete_global_ref(globalref: impl ::core::convert::Into<::unity::IntPtr>) -> () {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fa40usize)as*mut u8,();
33(::unity::IntPtr)::core::convert::Into::into(globalref))
34 }
35 }
36
37 #[doc = "`DeleteWeakGlobalRef(::unity::IntPtr)` overload"]
38 pub fn delete_weak_global_ref(globalref: impl ::core::convert::Into<::unity::IntPtr>) -> () {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fad0usize)as*mut u8,();
41(::unity::IntPtr)::core::convert::Into::into(globalref))
42 }
43 }
44
45 #[doc = "`DeleteLocalRef(::unity::IntPtr)` overload"]
46 pub fn delete_local_ref(localref: impl ::core::convert::Into<::unity::IntPtr>) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x3f0f9b0usize)as*mut u8,();
49(::unity::IntPtr)::core::convert::Into::into(localref))
50 }
51 }
52
53 #[doc = "`NewString(::unity::Il2CppString)` overload"]
54 pub fn new_string(chars: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::IntPtr {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fb60usize)as*mut u8, ::unity::IntPtr;
57(::unity::Il2CppString)::core::convert::Into::into(chars))
58 }
59 }
60
61 #[doc = "`GetStringChars(::unity::IntPtr)` overload"]
62 pub fn get_string_chars(str: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Il2CppString {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fbe0usize)as*mut u8, ::unity::Il2CppString;
65(::unity::IntPtr)::core::convert::Into::into(str))
66 }
67 }
68
69 #[doc = "`GetObjectClass(::unity::IntPtr)` overload"]
70 pub fn get_object_class(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::IntPtr {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fc60usize)as*mut u8, ::unity::IntPtr;
73(::unity::IntPtr)::core::convert::Into::into(ptr))
74 }
75 }
76
77 #[doc = "`GetStaticMethodID(::unity::IntPtr, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
78 pub fn get_static_method_id(
79 clazz: impl ::core::convert::Into<::unity::IntPtr>,
80 name: impl ::core::convert::Into<::unity::Il2CppString>,
81 sig: impl ::core::convert::Into<::unity::Il2CppString>,
82 ) -> ::unity::IntPtr {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fce0usize)as*mut u8, ::unity::IntPtr;
85(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(sig))
86 }
87 }
88
89 #[doc = "`GetMethodID(::unity::IntPtr, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
90 pub fn get_method_id(
91 obj: impl ::core::convert::Into<::unity::IntPtr>,
92 name: impl ::core::convert::Into<::unity::Il2CppString>,
93 sig: impl ::core::convert::Into<::unity::Il2CppString>,
94 ) -> ::unity::IntPtr {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fd80usize)as*mut u8, ::unity::IntPtr;
97(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(sig))
98 }
99 }
100
101 #[doc = "`FromReflectedMethod(::unity::IntPtr)` overload"]
102 pub fn from_reflected_method(ref_method: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::IntPtr {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fe20usize)as*mut u8, ::unity::IntPtr;
105(::unity::IntPtr)::core::convert::Into::into(ref_method))
106 }
107 }
108
109 #[doc = "`FindClass(::unity::Il2CppString)` overload"]
110 pub fn find_class(name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::IntPtr {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x3f0fea0usize)as*mut u8, ::unity::IntPtr;
113(::unity::Il2CppString)::core::convert::Into::into(name))
114 }
115 }
116
117 #[doc = "`NewObject(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
118 pub fn new_object(
119 clazz: impl ::core::convert::Into<::unity::IntPtr>,
120 method_id: impl ::core::convert::Into<::unity::IntPtr>,
121 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
122 ) -> ::unity::IntPtr {
123 unsafe {
124 ::unity::il2cpp_call!((::unity::module_base()+0x3f0ff20usize)as*mut u8, ::unity::IntPtr;
125(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
126 }
127 }
128
129 #[doc = "`CallStaticVoidMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
130 pub fn call_static_void_method(
131 clazz: impl ::core::convert::Into<::unity::IntPtr>,
132 method_id: impl ::core::convert::Into<::unity::IntPtr>,
133 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
134 ) -> () {
135 unsafe {
136 ::unity::il2cpp_call!((::unity::module_base()+0x3f0ffc0usize)as*mut u8,();
137(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
138 }
139 }
140
141 #[doc = "`CallStaticObjectMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
142 pub fn call_static_object_method(
143 clazz: impl ::core::convert::Into<::unity::IntPtr>,
144 method_id: impl ::core::convert::Into<::unity::IntPtr>,
145 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
146 ) -> ::unity::IntPtr {
147 unsafe {
148 ::unity::il2cpp_call!((::unity::module_base()+0x3f10060usize)as*mut u8, ::unity::IntPtr;
149(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
150 }
151 }
152
153 #[doc = "`CallStaticStringMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
154 pub fn call_static_string_method(
155 clazz: impl ::core::convert::Into<::unity::IntPtr>,
156 method_id: impl ::core::convert::Into<::unity::IntPtr>,
157 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
158 ) -> ::unity::Il2CppString {
159 unsafe {
160 ::unity::il2cpp_call!((::unity::module_base()+0x3f10100usize)as*mut u8, ::unity::Il2CppString;
161(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
162 }
163 }
164
165 #[doc = "`CallStaticCharMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
166 pub fn call_static_char_method(
167 clazz: impl ::core::convert::Into<::unity::IntPtr>,
168 method_id: impl ::core::convert::Into<::unity::IntPtr>,
169 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
170 ) -> u16 {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x3f101a0usize)as*mut u8,u16;
173(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
174 }
175 }
176
177 #[doc = "`CallStaticDoubleMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
178 pub fn call_static_double_method(
179 clazz: impl ::core::convert::Into<::unity::IntPtr>,
180 method_id: impl ::core::convert::Into<::unity::IntPtr>,
181 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
182 ) -> f64 {
183 unsafe {
184 ::unity::il2cpp_call!((::unity::module_base()+0x3f10240usize)as*mut u8,f64;
185(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
186 }
187 }
188
189 #[doc = "`CallStaticFloatMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
190 pub fn call_static_float_method(
191 clazz: impl ::core::convert::Into<::unity::IntPtr>,
192 method_id: impl ::core::convert::Into<::unity::IntPtr>,
193 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
194 ) -> f32 {
195 unsafe {
196 ::unity::il2cpp_call!((::unity::module_base()+0x3f102f0usize)as*mut u8,f32;
197(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
198 }
199 }
200
201 #[doc = "`CallStaticLongMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
202 pub fn call_static_long_method(
203 clazz: impl ::core::convert::Into<::unity::IntPtr>,
204 method_id: impl ::core::convert::Into<::unity::IntPtr>,
205 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
206 ) -> i64 {
207 unsafe {
208 ::unity::il2cpp_call!((::unity::module_base()+0x3f103a0usize)as*mut u8,i64;
209(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
210 }
211 }
212
213 #[doc = "`CallStaticShortMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
214 pub fn call_static_short_method(
215 clazz: impl ::core::convert::Into<::unity::IntPtr>,
216 method_id: impl ::core::convert::Into<::unity::IntPtr>,
217 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
218 ) -> i16 {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x3f10440usize)as*mut u8,i16;
221(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
222 }
223 }
224
225 #[doc = "`CallStaticSByteMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
226 pub fn call_static_s_byte_method(
227 clazz: impl ::core::convert::Into<::unity::IntPtr>,
228 method_id: impl ::core::convert::Into<::unity::IntPtr>,
229 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
230 ) -> i8 {
231 unsafe {
232 ::unity::il2cpp_call!((::unity::module_base()+0x3f104e0usize)as*mut u8,i8;
233(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
234 }
235 }
236
237 #[doc = "`CallStaticBooleanMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
238 pub fn call_static_boolean_method(
239 clazz: impl ::core::convert::Into<::unity::IntPtr>,
240 method_id: impl ::core::convert::Into<::unity::IntPtr>,
241 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
242 ) -> bool {
243 unsafe {
244 ::unity::il2cpp_call!((::unity::module_base()+0x3f10580usize)as*mut u8,bool;
245(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
246 }
247 }
248
249 #[doc = "`CallStaticIntMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
250 pub fn call_static_int_method(
251 clazz: impl ::core::convert::Into<::unity::IntPtr>,
252 method_id: impl ::core::convert::Into<::unity::IntPtr>,
253 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
254 ) -> i32 {
255 unsafe {
256 ::unity::il2cpp_call!((::unity::module_base()+0x3f10620usize)as*mut u8,i32;
257(::unity::IntPtr)::core::convert::Into::into(clazz),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
258 }
259 }
260
261 #[doc = "`CallObjectMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
262 pub fn call_object_method(
263 obj: impl ::core::convert::Into<::unity::IntPtr>,
264 method_id: impl ::core::convert::Into<::unity::IntPtr>,
265 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
266 ) -> ::unity::IntPtr {
267 unsafe {
268 ::unity::il2cpp_call!((::unity::module_base()+0x3f106c0usize)as*mut u8, ::unity::IntPtr;
269(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
270 }
271 }
272
273 #[doc = "`CallStringMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
274 pub fn call_string_method(
275 obj: impl ::core::convert::Into<::unity::IntPtr>,
276 method_id: impl ::core::convert::Into<::unity::IntPtr>,
277 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
278 ) -> ::unity::Il2CppString {
279 unsafe {
280 ::unity::il2cpp_call!((::unity::module_base()+0x3f10760usize)as*mut u8, ::unity::Il2CppString;
281(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
282 }
283 }
284
285 #[doc = "`CallCharMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
286 pub fn call_char_method(
287 obj: impl ::core::convert::Into<::unity::IntPtr>,
288 method_id: impl ::core::convert::Into<::unity::IntPtr>,
289 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
290 ) -> u16 {
291 unsafe {
292 ::unity::il2cpp_call!((::unity::module_base()+0x3f10800usize)as*mut u8,u16;
293(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
294 }
295 }
296
297 #[doc = "`CallDoubleMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
298 pub fn call_double_method(
299 obj: impl ::core::convert::Into<::unity::IntPtr>,
300 method_id: impl ::core::convert::Into<::unity::IntPtr>,
301 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
302 ) -> f64 {
303 unsafe {
304 ::unity::il2cpp_call!((::unity::module_base()+0x3f108a0usize)as*mut u8,f64;
305(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
306 }
307 }
308
309 #[doc = "`CallFloatMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
310 pub fn call_float_method(
311 obj: impl ::core::convert::Into<::unity::IntPtr>,
312 method_id: impl ::core::convert::Into<::unity::IntPtr>,
313 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
314 ) -> f32 {
315 unsafe {
316 ::unity::il2cpp_call!((::unity::module_base()+0x3f10950usize)as*mut u8,f32;
317(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
318 }
319 }
320
321 #[doc = "`CallLongMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
322 pub fn call_long_method(
323 obj: impl ::core::convert::Into<::unity::IntPtr>,
324 method_id: impl ::core::convert::Into<::unity::IntPtr>,
325 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
326 ) -> i64 {
327 unsafe {
328 ::unity::il2cpp_call!((::unity::module_base()+0x3f10a00usize)as*mut u8,i64;
329(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
330 }
331 }
332
333 #[doc = "`CallShortMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
334 pub fn call_short_method(
335 obj: impl ::core::convert::Into<::unity::IntPtr>,
336 method_id: impl ::core::convert::Into<::unity::IntPtr>,
337 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
338 ) -> i16 {
339 unsafe {
340 ::unity::il2cpp_call!((::unity::module_base()+0x3f10aa0usize)as*mut u8,i16;
341(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
342 }
343 }
344
345 #[doc = "`CallSByteMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
346 pub fn call_s_byte_method(
347 obj: impl ::core::convert::Into<::unity::IntPtr>,
348 method_id: impl ::core::convert::Into<::unity::IntPtr>,
349 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
350 ) -> i8 {
351 unsafe {
352 ::unity::il2cpp_call!((::unity::module_base()+0x3f10b40usize)as*mut u8,i8;
353(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
354 }
355 }
356
357 #[doc = "`CallBooleanMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
358 pub fn call_boolean_method(
359 obj: impl ::core::convert::Into<::unity::IntPtr>,
360 method_id: impl ::core::convert::Into<::unity::IntPtr>,
361 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
362 ) -> bool {
363 unsafe {
364 ::unity::il2cpp_call!((::unity::module_base()+0x3f10be0usize)as*mut u8,bool;
365(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
366 }
367 }
368
369 #[doc = "`CallIntMethod(::unity::IntPtr, ::unity::IntPtr, ::unity::Array<crate::unity_engine::jvalue::jvalue>)` overload"]
370 pub fn call_int_method(
371 obj: impl ::core::convert::Into<::unity::IntPtr>,
372 method_id: impl ::core::convert::Into<::unity::IntPtr>,
373 args: impl ::core::convert::Into<::unity::Array<crate::unity_engine::jvalue::jvalue>>,
374 ) -> i32 {
375 unsafe {
376 ::unity::il2cpp_call!((::unity::module_base()+0x3f10c80usize)as*mut u8,i32;
377(::unity::IntPtr)::core::convert::Into::into(obj),(::unity::IntPtr)::core::convert::Into::into(method_id),(::unity::Array<crate::unity_engine::jvalue::jvalue>)::core::convert::Into::into(args))
378 }
379 }
380
381 #[doc = "`FromCharArray(::unity::IntPtr)` overload"]
382 pub fn from_char_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<u16> {
383 unsafe {
384 ::unity::il2cpp_call!((::unity::module_base()+0x3f10d20usize)as*mut u8, ::unity::Array<u16> ;
385(::unity::IntPtr)::core::convert::Into::into(array))
386 }
387 }
388
389 #[doc = "`FromDoubleArray(::unity::IntPtr)` overload"]
390 pub fn from_double_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<f64> {
391 unsafe {
392 ::unity::il2cpp_call!((::unity::module_base()+0x3f10da0usize)as*mut u8, ::unity::Array<f64> ;
393(::unity::IntPtr)::core::convert::Into::into(array))
394 }
395 }
396
397 #[doc = "`FromFloatArray(::unity::IntPtr)` overload"]
398 pub fn from_float_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<f32> {
399 unsafe {
400 ::unity::il2cpp_call!((::unity::module_base()+0x3f10e20usize)as*mut u8, ::unity::Array<f32> ;
401(::unity::IntPtr)::core::convert::Into::into(array))
402 }
403 }
404
405 #[doc = "`FromLongArray(::unity::IntPtr)` overload"]
406 pub fn from_long_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<i64> {
407 unsafe {
408 ::unity::il2cpp_call!((::unity::module_base()+0x3f10ea0usize)as*mut u8, ::unity::Array<i64> ;
409(::unity::IntPtr)::core::convert::Into::into(array))
410 }
411 }
412
413 #[doc = "`FromShortArray(::unity::IntPtr)` overload"]
414 pub fn from_short_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<i16> {
415 unsafe {
416 ::unity::il2cpp_call!((::unity::module_base()+0x3f10f20usize)as*mut u8, ::unity::Array<i16> ;
417(::unity::IntPtr)::core::convert::Into::into(array))
418 }
419 }
420
421 #[doc = "`FromByteArray(::unity::IntPtr)` overload"]
422 pub fn from_byte_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<u8> {
423 unsafe {
424 ::unity::il2cpp_call!((::unity::module_base()+0x3f10fa0usize)as*mut u8, ::unity::Array<u8> ;
425(::unity::IntPtr)::core::convert::Into::into(array))
426 }
427 }
428
429 #[doc = "`FromSByteArray(::unity::IntPtr)` overload"]
430 pub fn from_s_byte_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<i8> {
431 unsafe {
432 ::unity::il2cpp_call!((::unity::module_base()+0x3f11020usize)as*mut u8, ::unity::Array<i8> ;
433(::unity::IntPtr)::core::convert::Into::into(array))
434 }
435 }
436
437 #[doc = "`FromBooleanArray(::unity::IntPtr)` overload"]
438 pub fn from_boolean_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<bool> {
439 unsafe {
440 ::unity::il2cpp_call!((::unity::module_base()+0x3f110a0usize)as*mut u8, ::unity::Array<bool> ;
441(::unity::IntPtr)::core::convert::Into::into(array))
442 }
443 }
444
445 #[doc = "`FromIntArray(::unity::IntPtr)` overload"]
446 pub fn from_int_array(array: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::Array<i32> {
447 unsafe {
448 ::unity::il2cpp_call!((::unity::module_base()+0x3f11120usize)as*mut u8, ::unity::Array<i32> ;
449(::unity::IntPtr)::core::convert::Into::into(array))
450 }
451 }
452
453 #[doc = "`ToObjectArray(::unity::Array<::unity::IntPtr>, ::unity::IntPtr)` overload"]
454 pub fn to_object_array(
455 array: impl ::core::convert::Into<::unity::Array<::unity::IntPtr>>,
456 r#type: impl ::core::convert::Into<::unity::IntPtr>,
457 ) -> ::unity::IntPtr {
458 unsafe {
459 ::unity::il2cpp_call!((::unity::module_base()+0x3f111a0usize)as*mut u8, ::unity::IntPtr;
460(::unity::Array< ::unity::IntPtr>)::core::convert::Into::into(array),(::unity::IntPtr)::core::convert::Into::into(r#type))
461 }
462 }
463
464 #[doc = "`ToCharArray(::unity::Array<u16>)` overload"]
465 pub fn to_char_array(array: impl ::core::convert::Into<::unity::Array<u16>>) -> ::unity::IntPtr {
466 unsafe {
467 ::unity::il2cpp_call!((::unity::module_base()+0x3f11230usize)as*mut u8, ::unity::IntPtr;
468(::unity::Array<u16>)::core::convert::Into::into(array))
469 }
470 }
471
472 #[doc = "`ToDoubleArray(::unity::Array<f64>)` overload"]
473 pub fn to_double_array(array: impl ::core::convert::Into<::unity::Array<f64>>) -> ::unity::IntPtr {
474 unsafe {
475 ::unity::il2cpp_call!((::unity::module_base()+0x3f112b0usize)as*mut u8, ::unity::IntPtr;
476(::unity::Array<f64>)::core::convert::Into::into(array))
477 }
478 }
479
480 #[doc = "`ToFloatArray(::unity::Array<f32>)` overload"]
481 pub fn to_float_array(array: impl ::core::convert::Into<::unity::Array<f32>>) -> ::unity::IntPtr {
482 unsafe {
483 ::unity::il2cpp_call!((::unity::module_base()+0x3f11330usize)as*mut u8, ::unity::IntPtr;
484(::unity::Array<f32>)::core::convert::Into::into(array))
485 }
486 }
487
488 #[doc = "`ToLongArray(::unity::Array<i64>)` overload"]
489 pub fn to_long_array(array: impl ::core::convert::Into<::unity::Array<i64>>) -> ::unity::IntPtr {
490 unsafe {
491 ::unity::il2cpp_call!((::unity::module_base()+0x3f113b0usize)as*mut u8, ::unity::IntPtr;
492(::unity::Array<i64>)::core::convert::Into::into(array))
493 }
494 }
495
496 #[doc = "`ToShortArray(::unity::Array<i16>)` overload"]
497 pub fn to_short_array(array: impl ::core::convert::Into<::unity::Array<i16>>) -> ::unity::IntPtr {
498 unsafe {
499 ::unity::il2cpp_call!((::unity::module_base()+0x3f11430usize)as*mut u8, ::unity::IntPtr;
500(::unity::Array<i16>)::core::convert::Into::into(array))
501 }
502 }
503
504 #[doc = "`ToByteArray(::unity::Array<u8>)` overload"]
505 pub fn to_byte_array(array: impl ::core::convert::Into<::unity::Array<u8>>) -> ::unity::IntPtr {
506 unsafe {
507 ::unity::il2cpp_call!((::unity::module_base()+0x3f114b0usize)as*mut u8, ::unity::IntPtr;
508(::unity::Array<u8>)::core::convert::Into::into(array))
509 }
510 }
511
512 #[doc = "`ToSByteArray(::unity::Array<i8>)` overload"]
513 pub fn to_s_byte_array(array: impl ::core::convert::Into<::unity::Array<i8>>) -> ::unity::IntPtr {
514 unsafe {
515 ::unity::il2cpp_call!((::unity::module_base()+0x3f11530usize)as*mut u8, ::unity::IntPtr;
516(::unity::Array<i8>)::core::convert::Into::into(array))
517 }
518 }
519
520 #[doc = "`ToBooleanArray(::unity::Array<bool>)` overload"]
521 pub fn to_boolean_array(array: impl ::core::convert::Into<::unity::Array<bool>>) -> ::unity::IntPtr {
522 unsafe {
523 ::unity::il2cpp_call!((::unity::module_base()+0x3f115b0usize)as*mut u8, ::unity::IntPtr;
524(::unity::Array<bool>)::core::convert::Into::into(array))
525 }
526 }
527
528 #[doc = "`ToIntArray(::unity::Array<i32>)` overload"]
529 pub fn to_int_array(array: impl ::core::convert::Into<::unity::Array<i32>>) -> ::unity::IntPtr {
530 unsafe {
531 ::unity::il2cpp_call!((::unity::module_base()+0x3f11630usize)as*mut u8, ::unity::IntPtr;
532(::unity::Array<i32>)::core::convert::Into::into(array))
533 }
534 }
535
536 #[doc = "`GetObjectArrayElement(::unity::IntPtr, i32)` overload"]
537 pub fn get_object_array_element(array: impl ::core::convert::Into<::unity::IntPtr>, index: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
538 unsafe {
539 ::unity::il2cpp_call!((::unity::module_base()+0x3f116b0usize)as*mut u8, ::unity::IntPtr;
540(::unity::IntPtr)::core::convert::Into::into(array),(i32)::core::convert::Into::into(index))
541 }
542 }
543
544 #[doc = "`GetArrayLength(::unity::IntPtr)` overload"]
545 pub fn get_array_length(array: impl ::core::convert::Into<::unity::IntPtr>) -> i32 {
546 unsafe {
547 ::unity::il2cpp_call!((::unity::module_base()+0x3f11740usize)as*mut u8,i32;
548(::unity::IntPtr)::core::convert::Into::into(array))
549 }
550 }
551}
552
553#[cfg(feature = "unity_engine-androidjnisafe")]
554impl AndroidJNISafe {
555 pub fn check_exception_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
557 }
558
559 pub fn delete_global_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
561 }
562
563 pub fn delete_weak_global_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
565 }
566
567 pub fn delete_local_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
569 }
570
571 pub fn new_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
573 }
574
575 pub fn get_string_chars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
577 }
578
579 pub fn get_object_class_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
581 }
582
583 pub fn get_static_method_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
585 }
586
587 pub fn get_method_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
589 }
590
591 pub fn from_reflected_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
593 }
594
595 pub fn find_class_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
597 }
598
599 pub fn new_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
601 }
602
603 pub fn call_static_void_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
605 }
606
607 pub fn call_static_object_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
609 }
610
611 pub fn call_static_string_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
613 }
614
615 pub fn call_static_char_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
617 }
618
619 pub fn call_static_double_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
621 }
622
623 pub fn call_static_float_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
625 }
626
627 pub fn call_static_long_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
629 }
630
631 pub fn call_static_short_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
633 }
634
635 pub fn call_static_s_byte_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
637 }
638
639 pub fn call_static_boolean_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
641 }
642
643 pub fn call_static_int_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
645 }
646
647 pub fn call_object_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
649 }
650
651 pub fn call_string_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
653 }
654
655 pub fn call_char_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
657 }
658
659 pub fn call_double_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
661 }
662
663 pub fn call_float_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
665 }
666
667 pub fn call_long_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
669 }
670
671 pub fn call_short_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
673 }
674
675 pub fn call_s_byte_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
677 }
678
679 pub fn call_boolean_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
681 }
682
683 pub fn call_int_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
685 }
686
687 pub fn from_char_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
689 }
690
691 pub fn from_double_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
693 }
694
695 pub fn from_float_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
697 }
698
699 pub fn from_long_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
701 }
702
703 pub fn from_short_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
705 }
706
707 pub fn from_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
708 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
709 }
710
711 pub fn from_s_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
712 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
713 }
714
715 pub fn from_boolean_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
716 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
717 }
718
719 pub fn from_int_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
720 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
721 }
722
723 pub fn to_object_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
724 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
725 }
726
727 pub fn to_char_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
728 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
729 }
730
731 pub fn to_double_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
732 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
733 }
734
735 pub fn to_float_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
736 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
737 }
738
739 pub fn to_long_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
740 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
741 }
742
743 pub fn to_short_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
744 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
745 }
746
747 pub fn to_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
748 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
749 }
750
751 pub fn to_s_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
752 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
753 }
754
755 pub fn to_boolean_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
756 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
757 }
758
759 pub fn to_int_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
760 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
761 }
762
763 pub fn get_object_array_element_method_info() -> &'static ::unity::il2cpp::MethodInfo {
764 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
765 }
766
767 pub fn get_array_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
769 }
770}
771
772#[cfg(feature = "unity_engine-androidjnisafe")]
773#[doc(hidden)]
774pub mod prelude {
775 pub use super::{AndroidJNISafe, IAndroidJNISafe};
776 pub use crate::system::object::IObject;
777 #[cfg(feature = "system-object")]
778 pub use crate::system::object::IObjectMethods;
779}