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

        /// [IconResizer](https://developer.android.com/reference/android/app/LauncherActivity.IconResizer.html#IconResizer(android.app.LauncherActivity))
        ///
        /// Required features: "android-app-LauncherActivity"
        #[cfg(any(feature = "all", all(feature = "android-app-LauncherActivity")))]
        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::app::LauncherActivity>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::LauncherActivity_IconResizer>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/LauncherActivity$IconResizer", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/app/LauncherActivity;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/LauncherActivity$IconResizer\0", "<init>\0", "(Landroid/app/LauncherActivity;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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