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