// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-view-TextureView"))]
__jni_bindgen! {
/// public class [TextureView](https://developer.android.com/reference/android/view/TextureView.html)
///
/// Required feature: "android-view-TextureView"
public class TextureView ("android/view/TextureView") extends crate::android::view::View {
/// [TextureView](https://developer.android.com/reference/android/view/TextureView.html#TextureView(android.content.Context))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::TextureView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "<init>\0", "(Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextureView](https://developer.android.com/reference/android/view/TextureView.html#TextureView(android.content.Context,%20android.util.AttributeSet))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::TextureView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextureView](https://developer.android.com/reference/android/view/TextureView.html#TextureView(android.content.Context,%20android.util.AttributeSet,%20int))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::TextureView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;I)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)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextureView](https://developer.android.com/reference/android/view/TextureView.html#TextureView(android.content.Context,%20android.util.AttributeSet,%20int,%20int))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::TextureView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;II)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), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isOpaque](https://developer.android.com/reference/android/view/TextureView.html#isOpaque())
pub fn isOpaque<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "isOpaque", .descriptor == "()Z"
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/view/TextureView\0", "isOpaque\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOpaque](https://developer.android.com/reference/android/view/TextureView.html#setOpaque(boolean))
pub fn setOpaque<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setOpaque", .descriptor == "(Z)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "setOpaque\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setLayerType](https://developer.android.com/reference/android/view/TextureView.html#setLayerType(int,%20android.graphics.Paint))
///
/// Required features: "android-graphics-Paint"
#[cfg(any(feature = "all", all(feature = "android-graphics-Paint")))]
pub fn setLayerType<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Paint>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setLayerType", .descriptor == "(ILandroid/graphics/Paint;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/view/TextureView\0", "setLayerType\0", "(ILandroid/graphics/Paint;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setLayerPaint](https://developer.android.com/reference/android/view/TextureView.html#setLayerPaint(android.graphics.Paint))
///
/// Required features: "android-graphics-Paint"
#[cfg(any(feature = "all", all(feature = "android-graphics-Paint")))]
pub fn setLayerPaint<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Paint>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setLayerPaint", .descriptor == "(Landroid/graphics/Paint;)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/view/TextureView\0", "setLayerPaint\0", "(Landroid/graphics/Paint;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLayerType](https://developer.android.com/reference/android/view/TextureView.html#getLayerType())
pub fn getLayerType<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getLayerType", .descriptor == "()I"
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/view/TextureView\0", "getLayerType\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [buildLayer](https://developer.android.com/reference/android/view/TextureView.html#buildLayer())
pub fn buildLayer<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "buildLayer", .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/view/TextureView\0", "buildLayer\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setForeground](https://developer.android.com/reference/android/view/TextureView.html#setForeground(android.graphics.drawable.Drawable))
///
/// Required features: "android-graphics-drawable-Drawable"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable")))]
pub fn setForeground<'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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setForeground", .descriptor == "(Landroid/graphics/drawable/Drawable;)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/view/TextureView\0", "setForeground\0", "(Landroid/graphics/drawable/Drawable;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setBackgroundDrawable](https://developer.android.com/reference/android/view/TextureView.html#setBackgroundDrawable(android.graphics.drawable.Drawable))
///
/// Required features: "android-graphics-drawable-Drawable"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable")))]
pub fn setBackgroundDrawable<'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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setBackgroundDrawable", .descriptor == "(Landroid/graphics/drawable/Drawable;)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/view/TextureView\0", "setBackgroundDrawable\0", "(Landroid/graphics/drawable/Drawable;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [draw](https://developer.android.com/reference/android/view/TextureView.html#draw(android.graphics.Canvas))
///
/// Required features: "android-graphics-Canvas"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))]
pub fn draw<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Canvas>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC | FINAL, .name == "draw", .descriptor == "(Landroid/graphics/Canvas;)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/view/TextureView\0", "draw\0", "(Landroid/graphics/Canvas;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTransform](https://developer.android.com/reference/android/view/TextureView.html#setTransform(android.graphics.Matrix))
///
/// Required features: "android-graphics-Matrix"
#[cfg(any(feature = "all", all(feature = "android-graphics-Matrix")))]
pub fn setTransform<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Matrix>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setTransform", .descriptor == "(Landroid/graphics/Matrix;)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/view/TextureView\0", "setTransform\0", "(Landroid/graphics/Matrix;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTransform](https://developer.android.com/reference/android/view/TextureView.html#getTransform(android.graphics.Matrix))
///
/// Required features: "android-graphics-Matrix"
#[cfg(any(feature = "all", all(feature = "android-graphics-Matrix")))]
pub fn getTransform<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Matrix>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Matrix>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getTransform", .descriptor == "(Landroid/graphics/Matrix;)Landroid/graphics/Matrix;"
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/view/TextureView\0", "getTransform\0", "(Landroid/graphics/Matrix;)Landroid/graphics/Matrix;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getBitmap](https://developer.android.com/reference/android/view/TextureView.html#getBitmap())
///
/// Required features: "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-graphics-Bitmap")))]
pub fn getBitmap<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getBitmap", .descriptor == "()Landroid/graphics/Bitmap;"
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/view/TextureView\0", "getBitmap\0", "()Landroid/graphics/Bitmap;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getBitmap](https://developer.android.com/reference/android/view/TextureView.html#getBitmap(int,%20int))
///
/// Required features: "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-graphics-Bitmap")))]
pub fn getBitmap_int_int<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getBitmap", .descriptor == "(II)Landroid/graphics/Bitmap;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/TextureView\0", "getBitmap\0", "(II)Landroid/graphics/Bitmap;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getBitmap](https://developer.android.com/reference/android/view/TextureView.html#getBitmap(android.graphics.Bitmap))
///
/// Required features: "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-graphics-Bitmap")))]
pub fn getBitmap_Bitmap<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Bitmap>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getBitmap", .descriptor == "(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;"
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/view/TextureView\0", "getBitmap\0", "(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isAvailable](https://developer.android.com/reference/android/view/TextureView.html#isAvailable())
pub fn isAvailable<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "isAvailable", .descriptor == "()Z"
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/view/TextureView\0", "isAvailable\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [lockCanvas](https://developer.android.com/reference/android/view/TextureView.html#lockCanvas())
///
/// Required features: "android-graphics-Canvas"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))]
pub fn lockCanvas<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Canvas>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "lockCanvas", .descriptor == "()Landroid/graphics/Canvas;"
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/view/TextureView\0", "lockCanvas\0", "()Landroid/graphics/Canvas;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [lockCanvas](https://developer.android.com/reference/android/view/TextureView.html#lockCanvas(android.graphics.Rect))
///
/// Required features: "android-graphics-Canvas", "android-graphics-Rect"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas", feature = "android-graphics-Rect")))]
pub fn lockCanvas_Rect<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Rect>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Canvas>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "lockCanvas", .descriptor == "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;"
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/view/TextureView\0", "lockCanvas\0", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unlockCanvasAndPost](https://developer.android.com/reference/android/view/TextureView.html#unlockCanvasAndPost(android.graphics.Canvas))
///
/// Required features: "android-graphics-Canvas"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))]
pub fn unlockCanvasAndPost<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Canvas>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "unlockCanvasAndPost", .descriptor == "(Landroid/graphics/Canvas;)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/view/TextureView\0", "unlockCanvasAndPost\0", "(Landroid/graphics/Canvas;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSurfaceTexture](https://developer.android.com/reference/android/view/TextureView.html#getSurfaceTexture())
///
/// Required features: "android-graphics-SurfaceTexture"
#[cfg(any(feature = "all", all(feature = "android-graphics-SurfaceTexture")))]
pub fn getSurfaceTexture<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::SurfaceTexture>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getSurfaceTexture", .descriptor == "()Landroid/graphics/SurfaceTexture;"
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/view/TextureView\0", "getSurfaceTexture\0", "()Landroid/graphics/SurfaceTexture;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSurfaceTexture](https://developer.android.com/reference/android/view/TextureView.html#setSurfaceTexture(android.graphics.SurfaceTexture))
///
/// Required features: "android-graphics-SurfaceTexture"
#[cfg(any(feature = "all", all(feature = "android-graphics-SurfaceTexture")))]
pub fn setSurfaceTexture<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::SurfaceTexture>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setSurfaceTexture", .descriptor == "(Landroid/graphics/SurfaceTexture;)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/view/TextureView\0", "setSurfaceTexture\0", "(Landroid/graphics/SurfaceTexture;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSurfaceTextureListener](https://developer.android.com/reference/android/view/TextureView.html#getSurfaceTextureListener())
///
/// Required features: "android-view-TextureView_SurfaceTextureListener"
#[cfg(any(feature = "all", all(feature = "android-view-TextureView_SurfaceTextureListener")))]
pub fn getSurfaceTextureListener<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::TextureView_SurfaceTextureListener>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "getSurfaceTextureListener", .descriptor == "()Landroid/view/TextureView$SurfaceTextureListener;"
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/view/TextureView\0", "getSurfaceTextureListener\0", "()Landroid/view/TextureView$SurfaceTextureListener;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSurfaceTextureListener](https://developer.android.com/reference/android/view/TextureView.html#setSurfaceTextureListener(android.view.TextureView.SurfaceTextureListener))
///
/// Required features: "android-view-TextureView_SurfaceTextureListener"
#[cfg(any(feature = "all", all(feature = "android-view-TextureView_SurfaceTextureListener")))]
pub fn setSurfaceTextureListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::TextureView_SurfaceTextureListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/TextureView", java.flags == PUBLIC, .name == "setSurfaceTextureListener", .descriptor == "(Landroid/view/TextureView$SurfaceTextureListener;)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/view/TextureView\0", "setSurfaceTextureListener\0", "(Landroid/view/TextureView$SurfaceTextureListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}