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

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

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