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


#[cfg(any(feature = "all", feature = "android-preference-PreferenceScreen"))]
__jni_bindgen! {
    /// public final class [PreferenceScreen](https://developer.android.com/reference/android/preference/PreferenceScreen.html)
    ///
    /// Required feature: "android-preference-PreferenceScreen"
    public final class PreferenceScreen ("android/preference/PreferenceScreen") extends crate::android::preference::PreferenceGroup, implements crate::android::widget::AdapterView_OnItemClickListener, crate::android::content::DialogInterface_OnDismissListener {

        /// [getRootAdapter](https://developer.android.com/reference/android/preference/PreferenceScreen.html#getRootAdapter())
        ///
        /// Required features: "android-widget-ListAdapter"
        #[cfg(any(feature = "all", all(feature = "android-widget-ListAdapter")))]
        pub fn getRootAdapter<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::ListAdapter>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/preference/PreferenceScreen", java.flags == PUBLIC, .name == "getRootAdapter", .descriptor == "()Landroid/widget/ListAdapter;"
            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/preference/PreferenceScreen\0", "getRootAdapter\0", "()Landroid/widget/ListAdapter;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bind](https://developer.android.com/reference/android/preference/PreferenceScreen.html#bind(android.widget.ListView))
        ///
        /// Required features: "android-widget-ListView"
        #[cfg(any(feature = "all", all(feature = "android-widget-ListView")))]
        pub fn bind<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::ListView>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/preference/PreferenceScreen", java.flags == PUBLIC, .name == "bind", .descriptor == "(Landroid/widget/ListView;)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/preference/PreferenceScreen\0", "bind\0", "(Landroid/widget/ListView;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getDialog](https://developer.android.com/reference/android/preference/PreferenceScreen.html#getDialog())
        ///
        /// Required features: "android-app-Dialog"
        #[cfg(any(feature = "all", all(feature = "android-app-Dialog")))]
        pub fn getDialog<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Dialog>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/preference/PreferenceScreen", java.flags == PUBLIC, .name == "getDialog", .descriptor == "()Landroid/app/Dialog;"
            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/preference/PreferenceScreen\0", "getDialog\0", "()Landroid/app/Dialog;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onItemClick](https://developer.android.com/reference/android/preference/PreferenceScreen.html#onItemClick(android.widget.AdapterView,%20android.view.View,%20int,%20long))
        ///
        /// Required features: "android-view-View", "android-widget-AdapterView"
        #[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-widget-AdapterView")))]
        pub fn onItemClick<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::AdapterView>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg2: i32, arg3: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/preference/PreferenceScreen", java.flags == PUBLIC, .name == "onItemClick", .descriptor == "(Landroid/widget/AdapterView;Landroid/view/View;IJ)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __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/preference/PreferenceScreen\0", "onItemClick\0", "(Landroid/widget/AdapterView;Landroid/view/View;IJ)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}