/// /// CameraControllerConfiguration.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 "CameraControllerConfiguration". */ @DoNotStrip @Keep data class CameraControllerConfiguration( @DoNotStrip @Keep val enableLowLightBoost: Boolean?, @DoNotStrip @Keep val enableSmoothAutoFocus: Boolean?, @DoNotStrip @Keep val enableDistortionCorrection: Boolean? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is CameraControllerConfiguration) return false return Objects.deepEquals(this.enableLowLightBoost, other.enableLowLightBoost) && Objects.deepEquals(this.enableSmoothAutoFocus, other.enableSmoothAutoFocus) && Objects.deepEquals(this.enableDistortionCorrection, other.enableDistortionCorrection) } override fun hashCode(): Int { return arrayOf( enableLowLightBoost, enableSmoothAutoFocus, enableDistortionCorrection ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(enableLowLightBoost: Boolean?, enableSmoothAutoFocus: Boolean?, enableDistortionCorrection: Boolean?): CameraControllerConfiguration { return CameraControllerConfiguration(enableLowLightBoost, enableSmoothAutoFocus, enableDistortionCorrection) } } }