Skip to main content

engage/generated/unity_engine/xr/
xrdevice.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-xr-xrdevice-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/xr/xrdevice/XRDevice.md"))]
11    #[::unity::class(namespace = "UnityEngine.XR", name = "XRDevice")]
12    #[parent(crate::system::object::Object)]
13    pub struct XRDevice {
14        #[static_field]
15        #[rename(name = "deviceLoaded")]
16        pub device_loaded: crate::system::action_1::Action_1<::unity::Il2CppString>,
17    }
18}
19
20#[cfg(feature = "unity_engine-xr-xrdevice-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-xr-xrdevice")]
24impl XRDevice {
25    #[doc = "`InvokeDeviceLoaded(::unity::Il2CppString)` overload"]
26    pub fn invoke_device_loaded(loaded_device_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x3f464f0usize)as*mut u8,();
29(::unity::Il2CppString)::core::convert::Into::into(loaded_device_name))
30        }
31    }
32
33    #[doc = "`.cctor()` overload"]
34    pub fn cctor() -> () {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x3f465c0usize)as*mut u8,();
37            )
38        }
39    }
40}
41
42#[cfg(feature = "unity_engine-xr-xrdevice")]
43impl XRDevice {
44    pub fn invoke_device_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
46    }
47
48    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
49        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
50    }
51}
52
53#[cfg(feature = "unity_engine-xr-xrdevice")]
54#[doc(hidden)]
55pub mod prelude {
56    pub use super::{IXRDevice, XRDevice};
57    pub use crate::system::object::IObject;
58    #[cfg(feature = "system-object")]
59    pub use crate::system::object::IObjectMethods;
60}