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-printservice-PrintService"))]
__jni_bindgen! {
    /// public class [PrintService](https://developer.android.com/reference/android/printservice/PrintService.html)
    ///
    /// Required feature: "android-printservice-PrintService"
    public class PrintService ("android/printservice/PrintService") extends crate::android::app::Service {

        /// [PrintService](https://developer.android.com/reference/android/printservice/PrintService.html#PrintService())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::printservice::PrintService>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/printservice/PrintService", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/printservice/PrintService\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [generatePrinterId](https://developer.android.com/reference/android/printservice/PrintService.html#generatePrinterId(java.lang.String))
        ///
        /// Required features: "android-print-PrinterId", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-print-PrinterId", feature = "java-lang-String")))]
        pub fn generatePrinterId<'env>(&'env self, 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, crate::android::print::PrinterId>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/printservice/PrintService", java.flags == PUBLIC | FINAL, .name == "generatePrinterId", .descriptor == "(Ljava/lang/String;)Landroid/print/PrinterId;"
            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/printservice/PrintService\0", "generatePrinterId\0", "(Ljava/lang/String;)Landroid/print/PrinterId;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onBind](https://developer.android.com/reference/android/printservice/PrintService.html#onBind(android.content.Intent))
        ///
        /// Required features: "android-content-Intent", "android-os-IBinder"
        #[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-os-IBinder")))]
        pub fn onBind<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::IBinder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/printservice/PrintService", java.flags == PUBLIC | FINAL, .name == "onBind", .descriptor == "(Landroid/content/Intent;)Landroid/os/IBinder;"
            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/printservice/PrintService\0", "onBind\0", "(Landroid/content/Intent;)Landroid/os/IBinder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [EXTRA_PRINTER_INFO](https://developer.android.com/reference/android/printservice/PrintService.html#EXTRA_PRINTER_INFO)
        pub const EXTRA_PRINTER_INFO : &'static str = "android.intent.extra.print.EXTRA_PRINTER_INFO";

        /// public static final [EXTRA_PRINT_JOB_INFO](https://developer.android.com/reference/android/printservice/PrintService.html#EXTRA_PRINT_JOB_INFO)
        pub const EXTRA_PRINT_JOB_INFO : &'static str = "android.intent.extra.print.PRINT_JOB_INFO";

        /// public static final [SERVICE_INTERFACE](https://developer.android.com/reference/android/printservice/PrintService.html#SERVICE_INTERFACE)
        pub const SERVICE_INTERFACE : &'static str = "android.printservice.PrintService";

        /// public static final [SERVICE_META_DATA](https://developer.android.com/reference/android/printservice/PrintService.html#SERVICE_META_DATA)
        pub const SERVICE_META_DATA : &'static str = "android.printservice";
    }
}