// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-hardware-Camera_CameraInfo"))]
__jni_bindgen! {
    /// public class [Camera.CameraInfo](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html)
    ///
    /// Required feature: android-hardware-Camera_CameraInfo
    #[deprecated] public class Camera_CameraInfo ("android/hardware/Camera$CameraInfo") extends crate::java::lang::Object {

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

        /// public static final [CAMERA_FACING_BACK](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#CAMERA_FACING_BACK)
        #[deprecated] pub const CAMERA_FACING_BACK : i32 = 0;

        /// public static final [CAMERA_FACING_FRONT](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#CAMERA_FACING_FRONT)
        #[deprecated] pub const CAMERA_FACING_FRONT : i32 = 1;

        /// **get** public [canDisableShutterSound](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#canDisableShutterSound)
        #[deprecated] pub fn canDisableShutterSound<'env>(&'env self) -> bool {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "canDisableShutterSound\0", "Z\0");
                env.get_boolean_field(class, field)
            }
        }

        /// **set** public [canDisableShutterSound](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#canDisableShutterSound)
        #[deprecated] pub fn set_canDisableShutterSound<'env>(&'env self, value: bool) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "canDisableShutterSound\0", "Z\0");
                env.set_boolean_field(class, field, value)
            }
        }

        /// **get** public [facing](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#facing)
        #[deprecated] pub fn facing<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "facing\0", "I\0");
                env.get_int_field(class, field)
            }
        }

        /// **set** public [facing](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#facing)
        #[deprecated] pub fn set_facing<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "facing\0", "I\0");
                env.set_int_field(class, field, value)
            }
        }

        /// **get** public [orientation](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#orientation)
        #[deprecated] pub fn orientation<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "orientation\0", "I\0");
                env.get_int_field(class, field)
            }
        }

        /// **set** public [orientation](https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#orientation)
        #[deprecated] pub fn set_orientation<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/hardware/Camera$CameraInfo\0", "orientation\0", "I\0");
                env.set_int_field(class, field, value)
            }
        }
    }
}
