1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [NativeActivity](https://developer.android.com/reference/android/app/NativeActivity.html) /// /// Required feature: android-app-NativeActivity #[cfg(any(feature = "all", feature = "android-app-NativeActivity"))] public class NativeActivity extends crate::android::app::Activity, implements crate::android::view::SurfaceHolder_Callback2, crate::android::view::InputQueue_Callback, crate::android::view::ViewTreeObserver_OnGlobalLayoutListener { /// <init> pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::app::NativeActivity>> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V" unsafe { let __jni_args = []; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "<init>\0", "()V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [onCreate](https://developer.android.com/reference/android/app/NativeActivity.html#onCreate(android,%2520os,%2520Bundle)) // /// // /// Required features: "android-os-Bundle" // #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))] // fn on_create<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onCreate", .descriptor == "(Landroid/os/Bundle;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onCreate\0", "(Landroid/os/Bundle;)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onDestroy](https://developer.android.com/reference/android/app/NativeActivity.html#onDestroy()) // fn on_destroy<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onDestroy", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onDestroy\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onPause](https://developer.android.com/reference/android/app/NativeActivity.html#onPause()) // fn on_pause<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onPause", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onPause\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onResume](https://developer.android.com/reference/android/app/NativeActivity.html#onResume()) // fn on_resume<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onResume", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onResume\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onSaveInstanceState](https://developer.android.com/reference/android/app/NativeActivity.html#onSaveInstanceState(android,%2520os,%2520Bundle)) // /// // /// Required features: "android-os-Bundle" // #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))] // fn on_save_instance_state<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onSaveInstanceState", .descriptor == "(Landroid/os/Bundle;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onSaveInstanceState\0", "(Landroid/os/Bundle;)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onStart](https://developer.android.com/reference/android/app/NativeActivity.html#onStart()) // fn on_start<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onStart", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onStart\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onStop](https://developer.android.com/reference/android/app/NativeActivity.html#onStop()) // fn on_stop<'env>(&'env self) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NativeActivity", java.flags == PROTECTED, .name == "onStop", .descriptor == "()V" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onStop\0", "()V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [onConfigurationChanged](https://developer.android.com/reference/android/app/NativeActivity.html#onConfigurationChanged(android,%2520content,%2520res,%2520Configuration)) /// /// Required features: "android-content-res-Configuration" #[cfg(any(feature = "all", all(feature = "android-content-res-Configuration")))] pub fn on_configuration_changed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Configuration>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onConfigurationChanged", .descriptor == "(Landroid/content/res/Configuration;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onConfigurationChanged\0", "(Landroid/content/res/Configuration;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [onLowMemory](https://developer.android.com/reference/android/app/NativeActivity.html#onLowMemory()) pub fn on_low_memory<'env>(&'env self) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onLowMemory", .descriptor == "()V" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onLowMemory\0", "()V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [onWindowFocusChanged](https://developer.android.com/reference/android/app/NativeActivity.html#onWindowFocusChanged(boolean)) pub fn on_window_focus_changed<'env>(&'env self, arg0: bool) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onWindowFocusChanged", .descriptor == "(Z)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onWindowFocusChanged\0", "(Z)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [surfaceCreated](https://developer.android.com/reference/android/app/NativeActivity.html#surfaceCreated(android,%2520view,%2520SurfaceHolder)) /// /// Required features: "android-view-SurfaceHolder" #[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))] pub fn surface_created<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "surfaceCreated", .descriptor == "(Landroid/view/SurfaceHolder;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "surfaceCreated\0", "(Landroid/view/SurfaceHolder;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [surfaceChanged](https://developer.android.com/reference/android/app/NativeActivity.html#surfaceChanged(android,%2520view,%2520SurfaceHolder,%2520int,%2520int,%2520int)) /// /// Required features: "android-view-SurfaceHolder" #[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))] pub fn surface_changed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "surfaceChanged", .descriptor == "(Landroid/view/SurfaceHolder;III)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "surfaceChanged\0", "(Landroid/view/SurfaceHolder;III)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [surfaceRedrawNeeded](https://developer.android.com/reference/android/app/NativeActivity.html#surfaceRedrawNeeded(android,%2520view,%2520SurfaceHolder)) /// /// Required features: "android-view-SurfaceHolder" #[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))] pub fn surface_redraw_needed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "surfaceRedrawNeeded", .descriptor == "(Landroid/view/SurfaceHolder;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "surfaceRedrawNeeded\0", "(Landroid/view/SurfaceHolder;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [surfaceDestroyed](https://developer.android.com/reference/android/app/NativeActivity.html#surfaceDestroyed(android,%2520view,%2520SurfaceHolder)) /// /// Required features: "android-view-SurfaceHolder" #[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))] pub fn surface_destroyed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "surfaceDestroyed", .descriptor == "(Landroid/view/SurfaceHolder;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "surfaceDestroyed\0", "(Landroid/view/SurfaceHolder;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [onInputQueueCreated](https://developer.android.com/reference/android/app/NativeActivity.html#onInputQueueCreated(android,%2520view,%2520InputQueue)) /// /// Required features: "android-view-InputQueue" #[cfg(any(feature = "all", all(feature = "android-view-InputQueue")))] pub fn on_input_queue_created<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::InputQueue>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onInputQueueCreated", .descriptor == "(Landroid/view/InputQueue;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onInputQueueCreated\0", "(Landroid/view/InputQueue;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [onInputQueueDestroyed](https://developer.android.com/reference/android/app/NativeActivity.html#onInputQueueDestroyed(android,%2520view,%2520InputQueue)) /// /// Required features: "android-view-InputQueue" #[cfg(any(feature = "all", all(feature = "android-view-InputQueue")))] pub fn on_input_queue_destroyed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::InputQueue>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onInputQueueDestroyed", .descriptor == "(Landroid/view/InputQueue;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onInputQueueDestroyed\0", "(Landroid/view/InputQueue;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [onGlobalLayout](https://developer.android.com/reference/android/app/NativeActivity.html#onGlobalLayout()) pub fn on_global_layout<'env>(&'env self) -> __jni_bindgen::Result<()> { // class.path == "android/app/NativeActivity", java.flags == PUBLIC, .name == "onGlobalLayout", .descriptor == "()V" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NativeActivity\0", "onGlobalLayout\0", "()V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// public static final [META_DATA_FUNC_NAME](https://developer.android.com/reference/android/app/NativeActivity.html#META_DATA_FUNC_NAME) pub const META_DATA_FUNC_NAME : &'static str = "android.app.func_name"; /// public static final [META_DATA_LIB_NAME](https://developer.android.com/reference/android/app/NativeActivity.html#META_DATA_LIB_NAME) pub const META_DATA_LIB_NAME : &'static str = "android.app.lib_name"; } }