// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-graphics-fonts-FontFamily_Builder"))]
__jni_bindgen! {
    /// public final class [FontFamily.Builder](https://developer.android.com/reference/android/graphics/fonts/FontFamily.Builder.html)
    ///
    /// Required feature: android-graphics-fonts-FontFamily_Builder
    public final class FontFamily_Builder ("android/graphics/fonts/FontFamily$Builder") extends crate::java::lang::Object {

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

        /// [addFont](https://developer.android.com/reference/android/graphics/fonts/FontFamily.Builder.html#addFont(android.graphics.fonts.Font))
        ///
        /// Required features: "android-graphics-fonts-Font", "android-graphics-fonts-FontFamily_Builder"
        #[cfg(any(feature = "all", all(feature = "android-graphics-fonts-Font", feature = "android-graphics-fonts-FontFamily_Builder")))]
        pub fn addFont<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::fonts::Font>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::fonts::FontFamily_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/fonts/FontFamily$Builder", java.flags == PUBLIC, .name == "addFont", .descriptor == "(Landroid/graphics/fonts/Font;)Landroid/graphics/fonts/FontFamily$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/fonts/FontFamily$Builder\0", "addFont\0", "(Landroid/graphics/fonts/Font;)Landroid/graphics/fonts/FontFamily$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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