/// /// CameraSessionConnection.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 "CameraSessionConnection". */ @DoNotStrip @Keep data class CameraSessionConnection( @DoNotStrip @Keep val input: HybridCameraDeviceSpec, @DoNotStrip @Keep val outputs: Array, @DoNotStrip @Keep val constraints: Array, @DoNotStrip @Keep val initialZoom: Double?, @DoNotStrip @Keep val initialExposureBias: Double?, @DoNotStrip @Keep val onSessionConfigSelected: Func_void_std__shared_ptr_HybridCameraSessionConfigSpec_? ) { /** * Create a new instance of CameraSessionConnection from Kotlin */ constructor(input: HybridCameraDeviceSpec, outputs: Array, constraints: Array, initialZoom: Double?, initialExposureBias: Double?, onSessionConfigSelected: ((config: HybridCameraSessionConfigSpec) -> Unit)?): this(input, outputs, constraints, initialZoom, initialExposureBias, onSessionConfigSelected?.let { Func_void_std__shared_ptr_HybridCameraSessionConfigSpec__java(it) }) override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is CameraSessionConnection) return false return Objects.deepEquals(this.input, other.input) && Objects.deepEquals(this.outputs, other.outputs) && Objects.deepEquals(this.constraints, other.constraints) && Objects.deepEquals(this.initialZoom, other.initialZoom) && Objects.deepEquals(this.initialExposureBias, other.initialExposureBias) && Objects.deepEquals(this.onSessionConfigSelected, other.onSessionConfigSelected) } override fun hashCode(): Int { return arrayOf( input, outputs, constraints, initialZoom, initialExposureBias, onSessionConfigSelected ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(input: HybridCameraDeviceSpec, outputs: Array, constraints: Array, initialZoom: Double?, initialExposureBias: Double?, onSessionConfigSelected: Func_void_std__shared_ptr_HybridCameraSessionConfigSpec_?): CameraSessionConnection { return CameraSessionConnection(input, outputs, constraints, initialZoom, initialExposureBias, onSessionConfigSelected) } } }