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

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