/// /// ScanBarcodeOptions.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.datascanner import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ScanBarcodeOptions". */ @DoNotStrip @Keep data class ScanBarcodeOptions( @DoNotStrip @Keep val targetFormats: Array?, @DoNotStrip @Keep val qualityLevel: ScanQualityLevel?, @DoNotStrip @Keep val enableHighFrameRateTracking: Boolean?, @DoNotStrip @Keep val enableAutoZoom: Boolean? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ScanBarcodeOptions) return false return Objects.deepEquals(this.targetFormats, other.targetFormats) && Objects.deepEquals(this.qualityLevel, other.qualityLevel) && Objects.deepEquals(this.enableHighFrameRateTracking, other.enableHighFrameRateTracking) && Objects.deepEquals(this.enableAutoZoom, other.enableAutoZoom) } override fun hashCode(): Int { return arrayOf( targetFormats, qualityLevel, enableHighFrameRateTracking, enableAutoZoom ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(targetFormats: Array?, qualityLevel: ScanQualityLevel?, enableHighFrameRateTracking: Boolean?, enableAutoZoom: Boolean?): ScanBarcodeOptions { return ScanBarcodeOptions(targetFormats, qualityLevel, enableHighFrameRateTracking, enableAutoZoom) } } }