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

        /// [SurfaceTexture](https://developer.android.com/reference/android/graphics/SurfaceTexture.html#SurfaceTexture(int))
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::SurfaceTexture>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/SurfaceTexture", java.flags == PUBLIC, .name == "<init>", .descriptor == "(I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/SurfaceTexture\0", "<init>\0", "(I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [getTransformMatrix](https://developer.android.com/reference/android/graphics/SurfaceTexture.html#getTransformMatrix(float%5B%5D))
        pub fn getTransformMatrix<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::FloatArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/SurfaceTexture", java.flags == PUBLIC, .name == "getTransformMatrix", .descriptor == "([F)V"
            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/graphics/SurfaceTexture\0", "getTransformMatrix\0", "([F)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}