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-renderscript-ScriptGroup_Closure"))]
__jni_bindgen! {
    /// public final class [ScriptGroup.Closure](https://developer.android.com/reference/android/renderscript/ScriptGroup.Closure.html)
    ///
    /// Required feature: "android-renderscript-ScriptGroup_Closure"
    public final class ScriptGroup_Closure ("android/renderscript/ScriptGroup$Closure") extends crate::android::renderscript::BaseObj {

        /// [destroy](https://developer.android.com/reference/android/renderscript/ScriptGroup.Closure.html#destroy())
        pub fn destroy<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ScriptGroup$Closure", java.flags == PUBLIC, .name == "destroy", .descriptor == "()V"
            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/renderscript/ScriptGroup$Closure\0", "destroy\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getReturn](https://developer.android.com/reference/android/renderscript/ScriptGroup.Closure.html#getReturn())
        ///
        /// Required features: "android-renderscript-ScriptGroup_Future"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-ScriptGroup_Future")))]
        pub fn getReturn<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup_Future>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ScriptGroup$Closure", java.flags == PUBLIC, .name == "getReturn", .descriptor == "()Landroid/renderscript/ScriptGroup$Future;"
            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/renderscript/ScriptGroup$Closure\0", "getReturn\0", "()Landroid/renderscript/ScriptGroup$Future;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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