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

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