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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [WebView.HitTestResult](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html) /// /// Required feature: android-webkit-WebView_HitTestResult #[cfg(any(feature = "all", feature = "android-webkit-WebView_HitTestResult"))] public class WebView_HitTestResult extends crate::java::lang::Object { // // Not emitting: Non-public method // /// <init> // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::webkit::WebView_HitTestResult>> { // // class.path == "android/webkit/WebView$HitTestResult", java.flags == (empty), .name == "<init>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/webkit/WebView$HitTestResult\0", "<init>\0", "()V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [getType](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#getType()) pub fn get_type<'env>(&'env self) -> __jni_bindgen::Result<i32> { // 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 get_extra<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // 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 [ANCHOR_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#ANCHOR_TYPE) #[deprecated] pub const ANCHOR_TYPE : i32 = 1; /// 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; /// 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 [GEO_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#GEO_TYPE) pub const GEO_TYPE : i32 = 3; /// 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 [IMAGE_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#IMAGE_TYPE) pub const IMAGE_TYPE : i32 = 5; /// 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 [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 [UNKNOWN_TYPE](https://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#UNKNOWN_TYPE) pub const UNKNOWN_TYPE : i32 = 0; } }