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

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

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

        /// **get** public final [startTime](https://developer.android.com/reference/android/content/SyncInfo.html#startTime)
        pub fn startTime<'env>(&'env self) -> i64 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncInfo\0", "startTime\0", "J\0");
                env.get_long_field(self.0.object, __jni_field)
            }
        }
    }
}