1#[cfg(feature = "app-softwarekeyboard-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/softwarekeyboard/SoftwareKeyboard_Preset.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct SoftwareKeyboard_Preset {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for SoftwareKeyboard_Preset {
24 const NAME: &'static str = "SoftwareKeyboard.Preset";
25 const NAMESPACE: &'static str = "App";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for SoftwareKeyboard_Preset {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl SoftwareKeyboard_Preset {
38 pub fn default() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn download_code() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn reported_reason() -> Self {
47 Self { value: 2 }
48 }
49 }
50
51 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/softwarekeyboard/SoftwareKeyboard.md"))]
52 #[::unity::class(namespace = "App", name = "SoftwareKeyboard")]
53 #[parent(crate::app::procinst::ProcInst)]
54 pub struct SoftwareKeyboard {
55 #[static_field]
56 #[rename(name = "DataCodeMaxLength")]
57 pub data_code_max_length: i32,
58 #[static_field]
59 #[rename(name = "s_result")]
60 pub s_result: ::unity::IlInstance,
61 #[offset(296)]
62 #[rename(name = "m_maxLength")]
63 pub m_max_length: i32,
64 #[offset(304)]
65 #[rename(name = "m_headerText")]
66 pub m_header_text: ::unity::Il2CppString,
67 #[offset(312)]
68 #[rename(name = "m_subText")]
69 pub m_sub_text: ::unity::Il2CppString,
70 #[offset(320)]
71 #[rename(name = "m_initialText")]
72 pub m_initial_text: ::unity::Il2CppString,
73 #[offset(328)]
74 #[rename(name = "m_preset")]
75 pub m_preset: crate::app::softwarekeyboard::SoftwareKeyboard_Preset,
76 #[offset(336)]
77 #[rename(name = "m_callback")]
78 pub m_callback: crate::system::action_1::Action_1<::unity::Il2CppString>,
79 }
80}
81
82#[cfg(feature = "app-softwarekeyboard-types")]
83pub use __types::*;
84
85#[cfg(feature = "app-softwarekeyboard")]
86impl SoftwareKeyboard {
87 #[doc = "`get_ResultText()` overload"]
88 pub fn get_result_text() -> ::unity::Il2CppString {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x1fdde40usize)as*mut u8, ::unity::Il2CppString;
91 )
92 }
93 }
94
95 #[doc = "`CreateBind(crate::app::procinst::ProcInst, i32, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::softwarekeyboard::SoftwareKeyboard_Preset, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
96 pub fn create_bind(
97 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
98 max_length: impl ::core::convert::Into<i32>,
99 initial_text: impl ::core::convert::Into<::unity::Il2CppString>,
100 header_text: impl ::core::convert::Into<::unity::Il2CppString>,
101 sub_text: impl ::core::convert::Into<::unity::Il2CppString>,
102 preset: impl ::core::convert::Into<crate::app::softwarekeyboard::SoftwareKeyboard_Preset>,
103 callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
104 ) -> () {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x1fde850usize)as*mut u8,();
107(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(max_length),(::unity::Il2CppString)::core::convert::Into::into(initial_text),(::unity::Il2CppString)::core::convert::Into::into(header_text),(::unity::Il2CppString)::core::convert::Into::into(sub_text),(crate::app::softwarekeyboard::SoftwareKeyboard_Preset)::core::convert::Into::into(preset),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
108 }
109 }
110
111 #[doc = "`CreateBindByPlayerNameInput(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
112 pub fn create_bind_by_player_name_input(
113 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
114 name: impl ::core::convert::Into<::unity::Il2CppString>,
115 callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
116 ) -> () {
117 unsafe {
118 ::unity::il2cpp_call!((::unity::module_base()+0x1fde950usize)as*mut u8,();
119(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
120 }
121 }
122
123 #[doc = "`GetResult()` overload"]
124 pub fn get_result() -> ::unity::Il2CppString {
125 unsafe {
126 ::unity::il2cpp_call!((::unity::module_base()+0x1fdea50usize)as*mut u8, ::unity::Il2CppString;
127 )
128 }
129 }
130
131 #[doc = "`.cctor()` overload"]
132 pub fn cctor() -> () {
133 unsafe {
134 ::unity::il2cpp_call!((::unity::module_base()+0x1fdeb10usize)as*mut u8,();
135 )
136 }
137 }
138}
139
140#[cfg(feature = "app-softwarekeyboard")]
141pub trait ISoftwareKeyboardMethods: ISoftwareKeyboard {
142 #[doc = "`.ctor(i32, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::softwarekeyboard::SoftwareKeyboard_Preset, crate::system::action_1::Action_1<::unity::Il2CppString>)` overload"]
143 fn ctor(
144 self,
145 max_length: impl ::core::convert::Into<i32>,
146 initial_text: impl ::core::convert::Into<::unity::Il2CppString>,
147 header_text: impl ::core::convert::Into<::unity::Il2CppString>,
148 sub_text: impl ::core::convert::Into<::unity::Il2CppString>,
149 preset: impl ::core::convert::Into<crate::app::softwarekeyboard::SoftwareKeyboard_Preset>,
150 callback: impl ::core::convert::Into<crate::system::action_1::Action_1<::unity::Il2CppString>>,
151 ) -> () {
152 unsafe {
153 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x1fddeb0usize)as*mut u8,();
155(SoftwareKeyboard)__receiver,(i32)::core::convert::Into::into(max_length),(::unity::Il2CppString)::core::convert::Into::into(initial_text),(::unity::Il2CppString)::core::convert::Into::into(header_text),(::unity::Il2CppString)::core::convert::Into::into(sub_text),(crate::app::softwarekeyboard::SoftwareKeyboard_Preset)::core::convert::Into::into(preset),(crate::system::action_1::Action_1< ::unity::Il2CppString>)::core::convert::Into::into(callback))
156 }
157 }
158 #[doc = "`CreateDesc()` overload"]
159 fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
160 unsafe {
161 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x1fddf50usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
163(SoftwareKeyboard)__receiver)
164 }
165 }
166 #[doc = "`Create()` overload"]
167 fn create(self) -> () {
168 unsafe {
169 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x1fde310usize)as*mut u8,();
171(SoftwareKeyboard)__receiver)
172 }
173 }
174 #[doc = "`Destroy()` overload"]
175 fn destroy(self) -> () {
176 unsafe {
177 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x1fde320usize)as*mut u8,();
179(SoftwareKeyboard)__receiver)
180 }
181 }
182 #[doc = "`Callback()` overload"]
183 fn callback(self) -> () {
184 unsafe {
185 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x1fde330usize)as*mut u8,();
187(SoftwareKeyboard)__receiver)
188 }
189 }
190 #[doc = "`ShowKeyboard()` overload"]
191 fn show_keyboard(self) -> () {
192 unsafe {
193 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x1fde550usize)as*mut u8,();
195(SoftwareKeyboard)__receiver)
196 }
197 }
198 #[doc = "`NetKeepAliveOn()` overload"]
199 fn net_keep_alive_on(self) -> () {
200 unsafe {
201 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x1fde830usize)as*mut u8,();
203(SoftwareKeyboard)__receiver)
204 }
205 }
206 #[doc = "`NetKeepAliveOff()` overload"]
207 fn net_keep_alive_off(self) -> () {
208 unsafe {
209 let __receiver = <SoftwareKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210 ::unity::il2cpp_call!((::unity::module_base()+0x1fde840usize)as*mut u8,();
211(SoftwareKeyboard)__receiver)
212 }
213 }
214}
215
216#[cfg(feature = "app-softwarekeyboard")]
217impl<__T: ISoftwareKeyboard> ISoftwareKeyboardMethods for __T {}
218
219#[cfg(feature = "app-softwarekeyboard")]
220impl SoftwareKeyboard {
221 pub fn get_result_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
223 }
224
225 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
227 }
228
229 pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
231 }
232
233 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
235 }
236
237 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
239 }
240
241 pub fn callback_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
243 }
244
245 pub fn show_keyboard_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
247 }
248
249 pub fn net_keep_alive_on_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
251 }
252
253 pub fn net_keep_alive_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
255 }
256
257 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
259 }
260
261 pub fn create_bind_by_player_name_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
263 }
264
265 pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
267 }
268
269 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
271 }
272}
273
274#[cfg(feature = "app-softwarekeyboard")]
275impl SoftwareKeyboard {
276 #[doc = "`.ctor(i32, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::softwarekeyboard::SoftwareKeyboard_Preset, crate::system::action_1::Action_1<::unity::Il2CppString>)` — overload selector"]
277 pub fn new(
278 max_length: i32,
279 initial_text: ::unity::Il2CppString,
280 header_text: ::unity::Il2CppString,
281 sub_text: ::unity::Il2CppString,
282 preset: crate::app::softwarekeyboard::SoftwareKeyboard_Preset,
283 callback: crate::system::action_1::Action_1<::unity::Il2CppString>,
284 ) -> Self {
285 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
286 panic!(
287 "{}
288::{}
289 failed to instantiate",
290 ::core::stringify!(SoftwareKeyboard),
291 ::core::stringify!(new),
292 )
293 });
294 <Self as ISoftwareKeyboardMethods>::ctor(this, max_length, initial_text, header_text, sub_text, preset, callback);
295 this
296 }
297}
298
299#[cfg(feature = "app-softwarekeyboard")]
300#[doc(hidden)]
301pub mod prelude {
302 pub use super::{ISoftwareKeyboard, ISoftwareKeyboardMethods, SoftwareKeyboard, SoftwareKeyboard_Preset};
303 #[cfg(feature = "app-procinst")]
304 pub use crate::app::procinst::IProcInstMethods;
305 #[cfg(feature = "system-object")]
306 pub use crate::system::object::IObjectMethods;
307 #[cfg(feature = "system-enum")]
308 pub use crate::system::r#enum::IEnumMethods;
309 #[cfg(feature = "system-valuetype")]
310 pub use crate::system::valuetype::IValueTypeMethods;
311 pub use crate::{
312 app::procinst::IProcInst,
313 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
314 };
315}