// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-service-autofill-CustomDescription_Builder"))]
__jni_bindgen! {
/// public class [CustomDescription.Builder](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder.html)
///
/// Required feature: "android-service-autofill-CustomDescription_Builder"
public class CustomDescription_Builder ("android/service/autofill/CustomDescription$Builder") extends crate::java::lang::Object {
/// [Builder](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder.html#Builder(android.widget.RemoteViews))
///
/// Required features: "android-widget-RemoteViews"
#[cfg(any(feature = "all", all(feature = "android-widget-RemoteViews")))]
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::widget::RemoteViews>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::service::autofill::CustomDescription_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/autofill/CustomDescription$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/widget/RemoteViews;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/CustomDescription$Builder\0", "<init>\0", "(Landroid/widget/RemoteViews;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [addChild](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder.html#addChild(int,%20android.service.autofill.Transformation))
///
/// Required features: "android-service-autofill-CustomDescription_Builder", "android-service-autofill-Transformation"
#[cfg(any(feature = "all", all(feature = "android-service-autofill-CustomDescription_Builder", feature = "android-service-autofill-Transformation")))]
pub fn addChild<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::service::autofill::Transformation>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::autofill::CustomDescription_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/autofill/CustomDescription$Builder", java.flags == PUBLIC, .name == "addChild", .descriptor == "(ILandroid/service/autofill/Transformation;)Landroid/service/autofill/CustomDescription$Builder;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/CustomDescription$Builder\0", "addChild\0", "(ILandroid/service/autofill/Transformation;)Landroid/service/autofill/CustomDescription$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [batchUpdate](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder.html#batchUpdate(android.service.autofill.Validator,%20android.service.autofill.BatchUpdates))
///
/// Required features: "android-service-autofill-BatchUpdates", "android-service-autofill-CustomDescription_Builder", "android-service-autofill-Validator"
#[cfg(any(feature = "all", all(feature = "android-service-autofill-BatchUpdates", feature = "android-service-autofill-CustomDescription_Builder", feature = "android-service-autofill-Validator")))]
pub fn batchUpdate<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::service::autofill::Validator>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::service::autofill::BatchUpdates>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::autofill::CustomDescription_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/autofill/CustomDescription$Builder", java.flags == PUBLIC, .name == "batchUpdate", .descriptor == "(Landroid/service/autofill/Validator;Landroid/service/autofill/BatchUpdates;)Landroid/service/autofill/CustomDescription$Builder;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/autofill/CustomDescription$Builder\0", "batchUpdate\0", "(Landroid/service/autofill/Validator;Landroid/service/autofill/BatchUpdates;)Landroid/service/autofill/CustomDescription$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [build](https://developer.android.com/reference/android/service/autofill/CustomDescription.Builder.html#build())
///
/// Required features: "android-service-autofill-CustomDescription"
#[cfg(any(feature = "all", all(feature = "android-service-autofill-CustomDescription")))]
pub fn build<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::autofill::CustomDescription>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/autofill/CustomDescription$Builder", java.flags == PUBLIC, .name == "build", .descriptor == "()Landroid/service/autofill/CustomDescription;"
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/service/autofill/CustomDescription$Builder\0", "build\0", "()Landroid/service/autofill/CustomDescription;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}