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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


__jni_bindgen! {
    /// public class [Application](https://developer.android.com/reference/android/app/Application.html)
    ///
    /// Required feature: android-app-Application
    #[cfg(any(feature = "all", feature = "android-app-Application"))]
    public class Application extends crate::android::content::ContextWrapper, implements crate::android::content::ComponentCallbacks2 {

        /// <init>
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::app::Application>> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Application\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onCreate](https://developer.android.com/reference/android/app/Application.html#onCreate())
        pub fn on_create<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "onCreate", .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/Application\0", "onCreate\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onTerminate](https://developer.android.com/reference/android/app/Application.html#onTerminate())
        pub fn on_terminate<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "onTerminate", .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/Application\0", "onTerminate\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/Application.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/Application", 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/Application\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/Application.html#onLowMemory())
        pub fn on_low_memory<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", 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/Application\0", "onLowMemory\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onTrimMemory](https://developer.android.com/reference/android/app/Application.html#onTrimMemory(int))
        pub fn on_trim_memory<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "onTrimMemory", .descriptor == "(I)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/Application\0", "onTrimMemory\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [registerComponentCallbacks](https://developer.android.com/reference/android/app/Application.html#registerComponentCallbacks(android,%2520content,%2520ComponentCallbacks))
        ///
        /// Required features: "android-content-ComponentCallbacks"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentCallbacks")))]
        pub fn register_component_callbacks<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentCallbacks>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "registerComponentCallbacks", .descriptor == "(Landroid/content/ComponentCallbacks;)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/Application\0", "registerComponentCallbacks\0", "(Landroid/content/ComponentCallbacks;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unregisterComponentCallbacks](https://developer.android.com/reference/android/app/Application.html#unregisterComponentCallbacks(android,%2520content,%2520ComponentCallbacks))
        ///
        /// Required features: "android-content-ComponentCallbacks"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentCallbacks")))]
        pub fn unregister_component_callbacks<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentCallbacks>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "unregisterComponentCallbacks", .descriptor == "(Landroid/content/ComponentCallbacks;)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/Application\0", "unregisterComponentCallbacks\0", "(Landroid/content/ComponentCallbacks;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [registerActivityLifecycleCallbacks](https://developer.android.com/reference/android/app/Application.html#registerActivityLifecycleCallbacks(android,%2520app,%2520Application.ActivityLifecycleCallbacks))
        ///
        /// Required features: "android-app-Application_ActivityLifecycleCallbacks"
        #[cfg(any(feature = "all", all(feature = "android-app-Application_ActivityLifecycleCallbacks")))]
        pub fn register_activity_lifecycle_callbacks<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Application_ActivityLifecycleCallbacks>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "registerActivityLifecycleCallbacks", .descriptor == "(Landroid/app/Application$ActivityLifecycleCallbacks;)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/Application\0", "registerActivityLifecycleCallbacks\0", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unregisterActivityLifecycleCallbacks](https://developer.android.com/reference/android/app/Application.html#unregisterActivityLifecycleCallbacks(android,%2520app,%2520Application.ActivityLifecycleCallbacks))
        ///
        /// Required features: "android-app-Application_ActivityLifecycleCallbacks"
        #[cfg(any(feature = "all", all(feature = "android-app-Application_ActivityLifecycleCallbacks")))]
        pub fn unregister_activity_lifecycle_callbacks<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Application_ActivityLifecycleCallbacks>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "unregisterActivityLifecycleCallbacks", .descriptor == "(Landroid/app/Application$ActivityLifecycleCallbacks;)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/Application\0", "unregisterActivityLifecycleCallbacks\0", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [registerOnProvideAssistDataListener](https://developer.android.com/reference/android/app/Application.html#registerOnProvideAssistDataListener(android,%2520app,%2520Application.OnProvideAssistDataListener))
        ///
        /// Required features: "android-app-Application_OnProvideAssistDataListener"
        #[cfg(any(feature = "all", all(feature = "android-app-Application_OnProvideAssistDataListener")))]
        pub fn register_on_provide_assist_data_listener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Application_OnProvideAssistDataListener>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "registerOnProvideAssistDataListener", .descriptor == "(Landroid/app/Application$OnProvideAssistDataListener;)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/Application\0", "registerOnProvideAssistDataListener\0", "(Landroid/app/Application$OnProvideAssistDataListener;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unregisterOnProvideAssistDataListener](https://developer.android.com/reference/android/app/Application.html#unregisterOnProvideAssistDataListener(android,%2520app,%2520Application.OnProvideAssistDataListener))
        ///
        /// Required features: "android-app-Application_OnProvideAssistDataListener"
        #[cfg(any(feature = "all", all(feature = "android-app-Application_OnProvideAssistDataListener")))]
        pub fn unregister_on_provide_assist_data_listener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Application_OnProvideAssistDataListener>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/Application", java.flags == PUBLIC, .name == "unregisterOnProvideAssistDataListener", .descriptor == "(Landroid/app/Application$OnProvideAssistDataListener;)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/Application\0", "unregisterOnProvideAssistDataListener\0", "(Landroid/app/Application$OnProvideAssistDataListener;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getProcessName](https://developer.android.com/reference/android/app/Application.html#getProcessName())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn get_process_name<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> {
            // class.path == "android/app/Application", java.flags == PUBLIC | STATIC, .name == "getProcessName", .descriptor == "()Ljava/lang/String;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/Application\0", "getProcessName\0", "()Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}