/// /// FaceScannerOutputOptions.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.visioncamerafacedetection import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "FaceScannerOutputOptions". */ @DoNotStrip @Keep data class FaceScannerOutputOptions( @DoNotStrip @Keep val outputResolution: FaceDetectorOutputResolution?, @DoNotStrip @Keep val onFaceScanned: Func_void_std__vector_std__shared_ptr_HybridFaceSpec__, @DoNotStrip @Keep val onError: Func_void_std__exception_ptr, @DoNotStrip @Keep val cameraFacing: CameraPosition?, @DoNotStrip @Keep val autoMode: Boolean?, @DoNotStrip @Keep val windowWidth: Double?, @DoNotStrip @Keep val windowHeight: Double?, @DoNotStrip @Keep val performanceMode: PerformanceMode?, @DoNotStrip @Keep val runLandmarks: Boolean?, @DoNotStrip @Keep val runContours: Boolean?, @DoNotStrip @Keep val runClassifications: Boolean?, @DoNotStrip @Keep val minFaceSize: Double?, @DoNotStrip @Keep val trackingEnabled: Boolean? ) { /** * Create a new instance of FaceScannerOutputOptions from Kotlin */ constructor(outputResolution: FaceDetectorOutputResolution?, onFaceScanned: (faces: Array) -> Unit, onError: (error: Throwable) -> Unit, cameraFacing: CameraPosition?, autoMode: Boolean?, windowWidth: Double?, windowHeight: Double?, performanceMode: PerformanceMode?, runLandmarks: Boolean?, runContours: Boolean?, runClassifications: Boolean?, minFaceSize: Double?, trackingEnabled: Boolean?): this(outputResolution, Func_void_std__vector_std__shared_ptr_HybridFaceSpec___java(onFaceScanned), Func_void_std__exception_ptr_java(onError), cameraFacing, autoMode, windowWidth, windowHeight, performanceMode, runLandmarks, runContours, runClassifications, minFaceSize, trackingEnabled) override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is FaceScannerOutputOptions) return false return Objects.deepEquals(this.outputResolution, other.outputResolution) && Objects.deepEquals(this.onFaceScanned, other.onFaceScanned) && Objects.deepEquals(this.onError, other.onError) && Objects.deepEquals(this.cameraFacing, other.cameraFacing) && Objects.deepEquals(this.autoMode, other.autoMode) && Objects.deepEquals(this.windowWidth, other.windowWidth) && Objects.deepEquals(this.windowHeight, other.windowHeight) && Objects.deepEquals(this.performanceMode, other.performanceMode) && Objects.deepEquals(this.runLandmarks, other.runLandmarks) && Objects.deepEquals(this.runContours, other.runContours) && Objects.deepEquals(this.runClassifications, other.runClassifications) && Objects.deepEquals(this.minFaceSize, other.minFaceSize) && Objects.deepEquals(this.trackingEnabled, other.trackingEnabled) } override fun hashCode(): Int { return arrayOf( outputResolution, onFaceScanned, onError, cameraFacing, autoMode, windowWidth, windowHeight, performanceMode, runLandmarks, runContours, runClassifications, minFaceSize, trackingEnabled ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(outputResolution: FaceDetectorOutputResolution?, onFaceScanned: Func_void_std__vector_std__shared_ptr_HybridFaceSpec__, onError: Func_void_std__exception_ptr, cameraFacing: CameraPosition?, autoMode: Boolean?, windowWidth: Double?, windowHeight: Double?, performanceMode: PerformanceMode?, runLandmarks: Boolean?, runContours: Boolean?, runClassifications: Boolean?, minFaceSize: Double?, trackingEnabled: Boolean?): FaceScannerOutputOptions { return FaceScannerOutputOptions(outputResolution, onFaceScanned, onError, cameraFacing, autoMode, windowWidth, windowHeight, performanceMode, runLandmarks, runContours, runClassifications, minFaceSize, trackingEnabled) } } }