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

        /// **get** public final [nfcAdapter](https://developer.android.com/reference/android/nfc/NfcEvent.html#nfcAdapter)
        ///
        /// Required feature: "android-nfc-NfcAdapter"
        #[cfg(any(feature = "all", feature = "android-nfc-NfcAdapter"))]
        pub fn nfcAdapter<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::nfc::NfcAdapter>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/nfc/NfcEvent\0", "nfcAdapter\0", "Landroid/nfc/NfcAdapter;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }
    }
}