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-graphics-pdf-PdfDocument_PageInfo"))]
__jni_bindgen! {
    /// public final class [PdfDocument.PageInfo](https://developer.android.com/reference/android/graphics/pdf/PdfDocument.PageInfo.html)
    ///
    /// Required feature: "android-graphics-pdf-PdfDocument_PageInfo"
    public final class PdfDocument_PageInfo ("android/graphics/pdf/PdfDocument$PageInfo") extends crate::java::lang::Object {

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

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

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

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