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

        /// [SafeBrowsingResponse](https://developer.android.com/reference/android/webkit/SafeBrowsingResponse.html#SafeBrowsingResponse())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::webkit::SafeBrowsingResponse>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/SafeBrowsingResponse", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/webkit/SafeBrowsingResponse\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [showInterstitial](https://developer.android.com/reference/android/webkit/SafeBrowsingResponse.html#showInterstitial(boolean))
        pub fn showInterstitial<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/SafeBrowsingResponse", java.flags == PUBLIC | ABSTRACT, .name == "showInterstitial", .descriptor == "(Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/webkit/SafeBrowsingResponse\0", "showInterstitial\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [proceed](https://developer.android.com/reference/android/webkit/SafeBrowsingResponse.html#proceed(boolean))
        pub fn proceed<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/SafeBrowsingResponse", java.flags == PUBLIC | ABSTRACT, .name == "proceed", .descriptor == "(Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/webkit/SafeBrowsingResponse\0", "proceed\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [backToSafety](https://developer.android.com/reference/android/webkit/SafeBrowsingResponse.html#backToSafety(boolean))
        pub fn backToSafety<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/SafeBrowsingResponse", java.flags == PUBLIC | ABSTRACT, .name == "backToSafety", .descriptor == "(Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/webkit/SafeBrowsingResponse\0", "backToSafety\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}