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

        /// [userRoot](https://developer.android.com/reference/java/util/prefs/PreferencesFactory.html#userRoot())
        ///
        /// Required features: "java-util-prefs-Preferences"
        #[cfg(any(feature = "all", all(feature = "java-util-prefs-Preferences")))]
        pub fn userRoot<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::prefs::Preferences>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/prefs/PreferencesFactory", java.flags == PUBLIC | ABSTRACT, .name == "userRoot", .descriptor == "()Ljava/util/prefs/Preferences;"
            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("java/util/prefs/PreferencesFactory\0", "userRoot\0", "()Ljava/util/prefs/Preferences;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [systemRoot](https://developer.android.com/reference/java/util/prefs/PreferencesFactory.html#systemRoot())
        ///
        /// Required features: "java-util-prefs-Preferences"
        #[cfg(any(feature = "all", all(feature = "java-util-prefs-Preferences")))]
        pub fn systemRoot<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::prefs::Preferences>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/prefs/PreferencesFactory", java.flags == PUBLIC | ABSTRACT, .name == "systemRoot", .descriptor == "()Ljava/util/prefs/Preferences;"
            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("java/util/prefs/PreferencesFactory\0", "systemRoot\0", "()Ljava/util/prefs/Preferences;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}