jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html#WindowInsets(android.view.WindowInsets))
        ///
        /// Required features: "android-view-WindowInsets"
        #[cfg(any(feature = "all", all(feature = "android-view-WindowInsets")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::WindowInsets>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::WindowInsets>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/view/WindowInsets;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/WindowInsets\0", "<init>\0", "(Landroid/view/WindowInsets;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSystemWindowInsetLeft](https://developer.android.com/reference/android/view/WindowInsets.html#getSystemWindowInsetLeft())
        pub fn getSystemWindowInsetLeft<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getSystemWindowInsetLeft", .descriptor == "()I"
            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/WindowInsets\0", "getSystemWindowInsetLeft\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSystemWindowInsetTop](https://developer.android.com/reference/android/view/WindowInsets.html#getSystemWindowInsetTop())
        pub fn getSystemWindowInsetTop<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getSystemWindowInsetTop", .descriptor == "()I"
            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/WindowInsets\0", "getSystemWindowInsetTop\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSystemWindowInsetRight](https://developer.android.com/reference/android/view/WindowInsets.html#getSystemWindowInsetRight())
        pub fn getSystemWindowInsetRight<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getSystemWindowInsetRight", .descriptor == "()I"
            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/WindowInsets\0", "getSystemWindowInsetRight\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSystemWindowInsetBottom](https://developer.android.com/reference/android/view/WindowInsets.html#getSystemWindowInsetBottom())
        pub fn getSystemWindowInsetBottom<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getSystemWindowInsetBottom", .descriptor == "()I"
            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/WindowInsets\0", "getSystemWindowInsetBottom\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [hasSystemWindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html#hasSystemWindowInsets())
        pub fn hasSystemWindowInsets<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "hasSystemWindowInsets", .descriptor == "()Z"
            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/WindowInsets\0", "hasSystemWindowInsets\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [hasInsets](https://developer.android.com/reference/android/view/WindowInsets.html#hasInsets())
        pub fn hasInsets<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "hasInsets", .descriptor == "()Z"
            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/WindowInsets\0", "hasInsets\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isConsumed](https://developer.android.com/reference/android/view/WindowInsets.html#isConsumed())
        pub fn isConsumed<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "isConsumed", .descriptor == "()Z"
            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/WindowInsets\0", "isConsumed\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isRound](https://developer.android.com/reference/android/view/WindowInsets.html#isRound())
        pub fn isRound<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "isRound", .descriptor == "()Z"
            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/WindowInsets\0", "isRound\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [replaceSystemWindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html#replaceSystemWindowInsets(int,%20int,%20int,%20int))
        ///
        /// Required features: "android-view-WindowInsets"
        #[cfg(any(feature = "all", all(feature = "android-view-WindowInsets")))]
        pub fn replaceSystemWindowInsets_int_int_int_int<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::WindowInsets>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "replaceSystemWindowInsets", .descriptor == "(IIII)Landroid/view/WindowInsets;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __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/view/WindowInsets\0", "replaceSystemWindowInsets\0", "(IIII)Landroid/view/WindowInsets;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getStableInsetTop](https://developer.android.com/reference/android/view/WindowInsets.html#getStableInsetTop())
        pub fn getStableInsetTop<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getStableInsetTop", .descriptor == "()I"
            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/WindowInsets\0", "getStableInsetTop\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getStableInsetLeft](https://developer.android.com/reference/android/view/WindowInsets.html#getStableInsetLeft())
        pub fn getStableInsetLeft<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getStableInsetLeft", .descriptor == "()I"
            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/WindowInsets\0", "getStableInsetLeft\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getStableInsetRight](https://developer.android.com/reference/android/view/WindowInsets.html#getStableInsetRight())
        pub fn getStableInsetRight<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getStableInsetRight", .descriptor == "()I"
            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/WindowInsets\0", "getStableInsetRight\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getStableInsetBottom](https://developer.android.com/reference/android/view/WindowInsets.html#getStableInsetBottom())
        pub fn getStableInsetBottom<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "getStableInsetBottom", .descriptor == "()I"
            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/WindowInsets\0", "getStableInsetBottom\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [hasStableInsets](https://developer.android.com/reference/android/view/WindowInsets.html#hasStableInsets())
        pub fn hasStableInsets<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/WindowInsets", java.flags == PUBLIC, .name == "hasStableInsets", .descriptor == "()Z"
            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/WindowInsets\0", "hasStableInsets\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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