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 [ViewManager](https://developer.android.com/reference/android/view/ViewManager.html)
    ///
    /// Required feature: android-view-ViewManager
    #[cfg(any(feature = "all", feature = "android-view-ViewManager"))]
    public interface ViewManager extends crate::java::lang::Object {

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

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

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