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-opengl-GLSurfaceView_EGLContextFactory"))]
__jni_bindgen! {
    /// public interface [GLSurfaceView.EGLContextFactory](https://developer.android.com/reference/android/opengl/GLSurfaceView.EGLContextFactory.html)
    ///
    /// Required feature: "android-opengl-GLSurfaceView_EGLContextFactory"
    public interface GLSurfaceView_EGLContextFactory ("android/opengl/GLSurfaceView$EGLContextFactory") extends crate::java::lang::Object {

        /// [createContext](https://developer.android.com/reference/android/opengl/GLSurfaceView.EGLContextFactory.html#createContext(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLConfig))
        ///
        /// Required features: "javax-microedition-khronos-egl-EGL10", "javax-microedition-khronos-egl-EGLConfig", "javax-microedition-khronos-egl-EGLContext", "javax-microedition-khronos-egl-EGLDisplay"
        #[cfg(any(feature = "all", all(feature = "javax-microedition-khronos-egl-EGL10", feature = "javax-microedition-khronos-egl-EGLConfig", feature = "javax-microedition-khronos-egl-EGLContext", feature = "javax-microedition-khronos-egl-EGLDisplay")))]
        pub fn createContext<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGL10>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGLDisplay>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGLConfig>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::microedition::khronos::egl::EGLContext>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/opengl/GLSurfaceView$EGLContextFactory", java.flags == PUBLIC | ABSTRACT, .name == "createContext", .descriptor == "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLContext;"
            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/opengl/GLSurfaceView$EGLContextFactory\0", "createContext\0", "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLContext;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [destroyContext](https://developer.android.com/reference/android/opengl/GLSurfaceView.EGLContextFactory.html#destroyContext(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLContext))
        ///
        /// Required features: "javax-microedition-khronos-egl-EGL10", "javax-microedition-khronos-egl-EGLContext", "javax-microedition-khronos-egl-EGLDisplay"
        #[cfg(any(feature = "all", all(feature = "javax-microedition-khronos-egl-EGL10", feature = "javax-microedition-khronos-egl-EGLContext", feature = "javax-microedition-khronos-egl-EGLDisplay")))]
        pub fn destroyContext<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGL10>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGLDisplay>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::javax::microedition::khronos::egl::EGLContext>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/opengl/GLSurfaceView$EGLContextFactory", java.flags == PUBLIC | ABSTRACT, .name == "destroyContext", .descriptor == "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLContext;)V"
            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/opengl/GLSurfaceView$EGLContextFactory\0", "destroyContext\0", "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLContext;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}