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

        /// [FontVariationAxis](https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis.html#FontVariationAxis(java.lang.String,%20float))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: f32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::fonts::FontVariationAxis>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/fonts/FontVariationAxis", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;F)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/fonts/FontVariationAxis\0", "<init>\0", "(Ljava/lang/String;F)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getStyleValue](https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis.html#getStyleValue())
        pub fn getStyleValue<'env>(&'env self) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/fonts/FontVariationAxis", java.flags == PUBLIC, .name == "getStyleValue", .descriptor == "()F"
            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/graphics/fonts/FontVariationAxis\0", "getStyleValue\0", "()F\0");
                __jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [fromFontVariationSettings](https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis.html#fromFontVariationSettings(java.lang.String))
        ///
        /// Required features: "android-graphics-fonts-FontVariationAxis", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-graphics-fonts-FontVariationAxis", feature = "java-lang-String")))]
        pub fn fromFontVariationSettings<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::graphics::fonts::FontVariationAxis, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/fonts/FontVariationAxis", java.flags == PUBLIC | STATIC, .name == "fromFontVariationSettings", .descriptor == "(Ljava/lang/String;)[Landroid/graphics/fonts/FontVariationAxis;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/graphics/fonts/FontVariationAxis\0", "fromFontVariationSettings\0", "(Ljava/lang/String;)[Landroid/graphics/fonts/FontVariationAxis;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [toFontVariationSettings](https://developer.android.com/reference/android/graphics/fonts/FontVariationAxis.html#toFontVariationSettings(android.graphics.fonts.FontVariationAxis%5B%5D))
        ///
        /// Required features: "android-graphics-fonts-FontVariationAxis", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-graphics-fonts-FontVariationAxis", feature = "java-lang-String")))]
        pub fn toFontVariationSettings<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::android::graphics::fonts::FontVariationAxis, crate::java::lang::Throwable>>>) -> __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/graphics/fonts/FontVariationAxis", java.flags == PUBLIC | STATIC, .name == "toFontVariationSettings", .descriptor == "([Landroid/graphics/fonts/FontVariationAxis;)Ljava/lang/String;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/graphics/fonts/FontVariationAxis\0", "toFontVariationSettings\0", "([Landroid/graphics/fonts/FontVariationAxis;)Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}