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

        /// [getType](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event.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/service/autofill/FillEventHistory$Event", 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/service/autofill/FillEventHistory$Event\0", "getType\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// public static final [TYPE_AUTHENTICATION_SELECTED](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event.html#TYPE_AUTHENTICATION_SELECTED)
        pub const TYPE_AUTHENTICATION_SELECTED : i32 = 2;

        /// public static final [TYPE_DATASET_AUTHENTICATION_SELECTED](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event.html#TYPE_DATASET_AUTHENTICATION_SELECTED)
        pub const TYPE_DATASET_AUTHENTICATION_SELECTED : i32 = 1;

        /// public static final [TYPE_DATASET_SELECTED](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event.html#TYPE_DATASET_SELECTED)
        pub const TYPE_DATASET_SELECTED : i32 = 0;

        /// public static final [TYPE_SAVE_SHOWN](https://developer.android.com/reference/android/service/autofill/FillEventHistory.Event.html#TYPE_SAVE_SHOWN)
        pub const TYPE_SAVE_SHOWN : i32 = 3;
    }
}