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-webkit-WebView_HitTestResult"))]
__jni_bindgen! {
    /// public class [WebView.HitTestResult](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html)
    ///
    /// Required feature: "android-webkit-WebView_HitTestResult"
    public class WebView_HitTestResult ("android/webkit/WebView$HitTestResult") extends crate::java::lang::Object {

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

        /// [getExtra](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#getExtra())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getExtra<'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/webkit/WebView$HitTestResult", java.flags == PUBLIC, .name == "getExtra", .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/webkit/WebView$HitTestResult\0", "getExtra\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [UNKNOWN_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#UNKNOWN_TYPE)
        pub const UNKNOWN_TYPE : i32 = 0;

        /// public static final [ANCHOR_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#ANCHOR_TYPE)
        #[deprecated] pub const ANCHOR_TYPE : i32 = 1;

        /// public static final [PHONE_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#PHONE_TYPE)
        pub const PHONE_TYPE : i32 = 2;

        /// public static final [GEO_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#GEO_TYPE)
        pub const GEO_TYPE : i32 = 3;

        /// public static final [EMAIL_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#EMAIL_TYPE)
        pub const EMAIL_TYPE : i32 = 4;

        /// public static final [IMAGE_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#IMAGE_TYPE)
        pub const IMAGE_TYPE : i32 = 5;

        /// public static final [IMAGE_ANCHOR_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#IMAGE_ANCHOR_TYPE)
        #[deprecated] pub const IMAGE_ANCHOR_TYPE : i32 = 6;

        /// public static final [SRC_ANCHOR_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#SRC_ANCHOR_TYPE)
        pub const SRC_ANCHOR_TYPE : i32 = 7;

        /// public static final [SRC_IMAGE_ANCHOR_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#SRC_IMAGE_ANCHOR_TYPE)
        pub const SRC_IMAGE_ANCHOR_TYPE : i32 = 8;

        /// public static final [EDIT_TEXT_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#EDIT_TEXT_TYPE)
        pub const EDIT_TEXT_TYPE : i32 = 9;
    }
}