// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-hardware-camera2-CameraCaptureSession_CaptureCallback"))]
__jni_bindgen! {
/// public class [CameraCaptureSession.CaptureCallback](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html)
///
/// Required feature: "android-hardware-camera2-CameraCaptureSession_CaptureCallback"
public class CameraCaptureSession_CaptureCallback ("android/hardware/camera2/CameraCaptureSession$CaptureCallback") extends crate::java::lang::Object {
/// [CaptureCallback](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#CaptureCallback())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::hardware::camera2::CameraCaptureSession_CaptureCallback>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureStarted](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureStarted(android.hardware.camera2.CameraCaptureSession,%20android.hardware.camera2.CaptureRequest,%20long,%20long))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession", "android-hardware-camera2-CaptureRequest"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession", feature = "android-hardware-camera2-CaptureRequest")))]
pub fn onCaptureStarted<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureRequest>>, arg2: i64, arg3: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureStarted", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;JJ)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_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureStarted\0", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;JJ)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureProgressed](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureProgressed(android.hardware.camera2.CameraCaptureSession,%20android.hardware.camera2.CaptureRequest,%20android.hardware.camera2.CaptureResult))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession", "android-hardware-camera2-CaptureRequest", "android-hardware-camera2-CaptureResult"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession", feature = "android-hardware-camera2-CaptureRequest", feature = "android-hardware-camera2-CaptureResult")))]
pub fn onCaptureProgressed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureRequest>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureResult>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureProgressed", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureResult;)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/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureProgressed\0", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureResult;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureCompleted](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureCompleted(android.hardware.camera2.CameraCaptureSession,%20android.hardware.camera2.CaptureRequest,%20android.hardware.camera2.TotalCaptureResult))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession", "android-hardware-camera2-CaptureRequest", "android-hardware-camera2-TotalCaptureResult"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession", feature = "android-hardware-camera2-CaptureRequest", feature = "android-hardware-camera2-TotalCaptureResult")))]
pub fn onCaptureCompleted<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureRequest>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::TotalCaptureResult>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureCompleted", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)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/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureCompleted\0", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureFailed](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureFailed(android.hardware.camera2.CameraCaptureSession,%20android.hardware.camera2.CaptureRequest,%20android.hardware.camera2.CaptureFailure))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession", "android-hardware-camera2-CaptureFailure", "android-hardware-camera2-CaptureRequest"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession", feature = "android-hardware-camera2-CaptureFailure", feature = "android-hardware-camera2-CaptureRequest")))]
pub fn onCaptureFailed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureRequest>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CaptureFailure>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureFailed", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureFailure;)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/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureFailed\0", "(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureFailure;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureSequenceCompleted](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureSequenceCompleted(android.hardware.camera2.CameraCaptureSession,%20int,%20long))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession")))]
pub fn onCaptureSequenceCompleted<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: i32, arg2: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureSequenceCompleted", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;IJ)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureSequenceCompleted\0", "(Landroid/hardware/camera2/CameraCaptureSession;IJ)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCaptureSequenceAborted](https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.CaptureCallback.html#onCaptureSequenceAborted(android.hardware.camera2.CameraCaptureSession,%20int))
///
/// Required features: "android-hardware-camera2-CameraCaptureSession"
#[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CameraCaptureSession")))]
pub fn onCaptureSequenceAborted<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::camera2::CameraCaptureSession>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/camera2/CameraCaptureSession$CaptureCallback", java.flags == PUBLIC, .name == "onCaptureSequenceAborted", .descriptor == "(Landroid/hardware/camera2/CameraCaptureSession;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/hardware/camera2/CameraCaptureSession$CaptureCallback\0", "onCaptureSequenceAborted\0", "(Landroid/hardware/camera2/CameraCaptureSession;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}