// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-view-autofill-AutofillManager_AutofillCallback"))]
__jni_bindgen! {
    /// public class [AutofillManager.AutofillCallback](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html)
    ///
    /// Required feature: android-view-autofill-AutofillManager_AutofillCallback
    public class AutofillManager_AutofillCallback ("android/view/autofill/AutofillManager$AutofillCallback") extends crate::java::lang::Object {

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

        /// [onAutofillEvent](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html#onAutofillEvent(android.view.View,%20int))
        ///
        /// Required features: "android-view-View"
        #[cfg(any(feature = "all", all(feature = "android-view-View")))]
        pub fn onAutofillEvent_View_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/autofill/AutofillManager$AutofillCallback", java.flags == PUBLIC, .name == "onAutofillEvent", .descriptor == "(Landroid/view/View;I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/autofill/AutofillManager$AutofillCallback\0", "onAutofillEvent\0", "(Landroid/view/View;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onAutofillEvent](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html#onAutofillEvent(android.view.View,%20int,%20int))
        ///
        /// Required features: "android-view-View"
        #[cfg(any(feature = "all", all(feature = "android-view-View")))]
        pub fn onAutofillEvent_View_int_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/autofill/AutofillManager$AutofillCallback", java.flags == PUBLIC, .name == "onAutofillEvent", .descriptor == "(Landroid/view/View;II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/autofill/AutofillManager$AutofillCallback\0", "onAutofillEvent\0", "(Landroid/view/View;II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [EVENT_INPUT_HIDDEN](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html#EVENT_INPUT_HIDDEN)
        pub const EVENT_INPUT_HIDDEN : i32 = 2;

        /// public static final [EVENT_INPUT_SHOWN](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html#EVENT_INPUT_SHOWN)
        pub const EVENT_INPUT_SHOWN : i32 = 1;

        /// public static final [EVENT_INPUT_UNAVAILABLE](https://developer.android.com/reference/android/view/autofill/AutofillManager.AutofillCallback.html#EVENT_INPUT_UNAVAILABLE)
        pub const EVENT_INPUT_UNAVAILABLE : i32 = 3;
    }
}
