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


__jni_bindgen! {
    /// public interface [LoaderManager.LoaderCallbacks](https://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html)
    ///
    /// Required feature: android-app-LoaderManager_LoaderCallbacks
    #[cfg(any(feature = "all", feature = "android-app-LoaderManager_LoaderCallbacks"))]
    #[deprecated] public interface LoaderManager_LoaderCallbacks extends crate::java::lang::Object {

        /// [onCreateLoader](https://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html#onCreateLoader(int,%2520android,%2520os,%2520Bundle))
        ///
        /// Required features: "android-content-Loader", "android-os-Bundle"
        #[cfg(any(feature = "all", all(feature = "android-content-Loader", feature = "android-os-Bundle")))]
        pub fn on_create_loader<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Loader>>> {
            // class.path == "android/app/LoaderManager$LoaderCallbacks", java.flags == PUBLIC | ABSTRACT, .name == "onCreateLoader", .descriptor == "(ILandroid/os/Bundle;)Landroid/content/Loader;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/LoaderManager$LoaderCallbacks\0", "onCreateLoader\0", "(ILandroid/os/Bundle;)Landroid/content/Loader;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onLoadFinished](https://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html#onLoadFinished(android,%2520content,%2520Loader,%2520java,%2520lang,%2520Object))
        ///
        /// Required features: "android-content-Loader", "java-lang-Object"
        #[cfg(any(feature = "all", all(feature = "android-content-Loader", feature = "java-lang-Object")))]
        pub fn on_load_finished<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Loader>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/LoaderManager$LoaderCallbacks", java.flags == PUBLIC | ABSTRACT, .name == "onLoadFinished", .descriptor == "(Landroid/content/Loader;Ljava/lang/Object;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/LoaderManager$LoaderCallbacks\0", "onLoadFinished\0", "(Landroid/content/Loader;Ljava/lang/Object;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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