// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-print-PrintManager"))]
__jni_bindgen! {
/// public final class [PrintManager](https://developer.android.com/reference/android/print/PrintManager.html)
///
/// Required feature: "android-print-PrintManager"
public final class PrintManager ("android/print/PrintManager") extends crate::java::lang::Object {
/// [getPrintJobs](https://developer.android.com/reference/android/print/PrintManager.html#getPrintJobs())
///
/// Required features: "java-util-List"
#[cfg(any(feature = "all", all(feature = "java-util-List")))]
pub fn getPrintJobs<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::List>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/print/PrintManager", java.flags == PUBLIC, .name == "getPrintJobs", .descriptor == "()Ljava/util/List;"
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/print/PrintManager\0", "getPrintJobs\0", "()Ljava/util/List;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [print](https://developer.android.com/reference/android/print/PrintManager.html#print(java.lang.String,%20android.print.PrintDocumentAdapter,%20android.print.PrintAttributes))
///
/// Required features: "android-print-PrintAttributes", "android-print-PrintDocumentAdapter", "android-print-PrintJob", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-print-PrintAttributes", feature = "android-print-PrintDocumentAdapter", feature = "android-print-PrintJob", feature = "java-lang-String")))]
pub fn print<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::print::PrintDocumentAdapter>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::print::PrintAttributes>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::print::PrintJob>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/print/PrintManager", java.flags == PUBLIC, .name == "print", .descriptor == "(Ljava/lang/String;Landroid/print/PrintDocumentAdapter;Landroid/print/PrintAttributes;)Landroid/print/PrintJob;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/print/PrintManager\0", "print\0", "(Ljava/lang/String;Landroid/print/PrintDocumentAdapter;Landroid/print/PrintAttributes;)Landroid/print/PrintJob;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}