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


__jni_bindgen! {
    /// public interface [ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)
    ///
    /// Required feature: android-view-ContextMenu
    #[cfg(any(feature = "all", feature = "android-view-ContextMenu"))]
    public interface ContextMenu extends crate::java::lang::Object, implements crate::android::view::Menu {

        /// [setHeaderTitle](https://developer.android.com/reference/android/view/ContextMenu.html#setHeaderTitle(int))
        ///
        /// Required features: "android-view-ContextMenu"
        #[cfg(any(feature = "all", all(feature = "android-view-ContextMenu")))]
        pub fn set_header_title_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::ContextMenu>>> {
            // class.path == "android/view/ContextMenu", java.flags == PUBLIC | ABSTRACT, .name == "setHeaderTitle", .descriptor == "(I)Landroid/view/ContextMenu;"
            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/view/ContextMenu\0", "setHeaderTitle\0", "(I)Landroid/view/ContextMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setHeaderTitle](https://developer.android.com/reference/android/view/ContextMenu.html#setHeaderTitle(java,%2520lang,%2520CharSequence))
        ///
        /// Required features: "android-view-ContextMenu", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-ContextMenu", feature = "java-lang-CharSequence")))]
        pub fn set_header_title_char_sequence<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::ContextMenu>>> {
            // class.path == "android/view/ContextMenu", java.flags == PUBLIC | ABSTRACT, .name == "setHeaderTitle", .descriptor == "(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;"
            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/view/ContextMenu\0", "setHeaderTitle\0", "(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setHeaderIcon](https://developer.android.com/reference/android/view/ContextMenu.html#setHeaderIcon(int))
        ///
        /// Required features: "android-view-ContextMenu"
        #[cfg(any(feature = "all", all(feature = "android-view-ContextMenu")))]
        pub fn set_header_icon_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::ContextMenu>>> {
            // class.path == "android/view/ContextMenu", java.flags == PUBLIC | ABSTRACT, .name == "setHeaderIcon", .descriptor == "(I)Landroid/view/ContextMenu;"
            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/view/ContextMenu\0", "setHeaderIcon\0", "(I)Landroid/view/ContextMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setHeaderIcon](https://developer.android.com/reference/android/view/ContextMenu.html#setHeaderIcon(android,%2520graphics,%2520drawable,%2520Drawable))
        ///
        /// Required features: "android-graphics-drawable-Drawable", "android-view-ContextMenu"
        #[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable", feature = "android-view-ContextMenu")))]
        pub fn set_header_icon_drawable<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::drawable::Drawable>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::ContextMenu>>> {
            // class.path == "android/view/ContextMenu", java.flags == PUBLIC | ABSTRACT, .name == "setHeaderIcon", .descriptor == "(Landroid/graphics/drawable/Drawable;)Landroid/view/ContextMenu;"
            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/view/ContextMenu\0", "setHeaderIcon\0", "(Landroid/graphics/drawable/Drawable;)Landroid/view/ContextMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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