/// /// CapturePhotoSettings.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.camera import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "CapturePhotoSettings". */ @DoNotStrip @Keep data class CapturePhotoSettings( @DoNotStrip @Keep val flashMode: FlashMode?, @DoNotStrip @Keep val enableShutterSound: Boolean?, @DoNotStrip @Keep val enableDepthData: Boolean?, @DoNotStrip @Keep val enableRedEyeReduction: Boolean?, @DoNotStrip @Keep val enableCameraCalibrationDataDelivery: Boolean?, @DoNotStrip @Keep val enableDistortionCorrection: Boolean?, @DoNotStrip @Keep val enableVirtualDeviceFusion: Boolean?, @DoNotStrip @Keep val location: HybridLocationSpec? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is CapturePhotoSettings) return false return Objects.deepEquals(this.flashMode, other.flashMode) && Objects.deepEquals(this.enableShutterSound, other.enableShutterSound) && Objects.deepEquals(this.enableDepthData, other.enableDepthData) && Objects.deepEquals(this.enableRedEyeReduction, other.enableRedEyeReduction) && Objects.deepEquals(this.enableCameraCalibrationDataDelivery, other.enableCameraCalibrationDataDelivery) && Objects.deepEquals(this.enableDistortionCorrection, other.enableDistortionCorrection) && Objects.deepEquals(this.enableVirtualDeviceFusion, other.enableVirtualDeviceFusion) && Objects.deepEquals(this.location, other.location) } override fun hashCode(): Int { return arrayOf( flashMode, enableShutterSound, enableDepthData, enableRedEyeReduction, enableCameraCalibrationDataDelivery, enableDistortionCorrection, enableVirtualDeviceFusion, location ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(flashMode: FlashMode?, enableShutterSound: Boolean?, enableDepthData: Boolean?, enableRedEyeReduction: Boolean?, enableCameraCalibrationDataDelivery: Boolean?, enableDistortionCorrection: Boolean?, enableVirtualDeviceFusion: Boolean?, location: HybridLocationSpec?): CapturePhotoSettings { return CapturePhotoSettings(flashMode, enableShutterSound, enableDepthData, enableRedEyeReduction, enableCameraCalibrationDataDelivery, enableDistortionCorrection, enableVirtualDeviceFusion, location) } } }