/// /// ResolvedImagePickerOptions.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ResolvedImagePickerOptions". */ @DoNotStrip @Keep data class ResolvedImagePickerOptions( @DoNotStrip @Keep val mediaTypes: Array, @DoNotStrip @Keep val selectionLimit: Double, @DoNotStrip @Keep val allowsEditing: Boolean, @DoNotStrip @Keep val aspect: ImagePickerCropAspect?, @DoNotStrip @Keep val quality: Double, @DoNotStrip @Keep val videoMaxDuration: Double, @DoNotStrip @Keep val videoQuality: String ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ResolvedImagePickerOptions) return false return Objects.deepEquals(this.mediaTypes, other.mediaTypes) && Objects.deepEquals(this.selectionLimit, other.selectionLimit) && Objects.deepEquals(this.allowsEditing, other.allowsEditing) && Objects.deepEquals(this.aspect, other.aspect) && Objects.deepEquals(this.quality, other.quality) && Objects.deepEquals(this.videoMaxDuration, other.videoMaxDuration) && Objects.deepEquals(this.videoQuality, other.videoQuality) } override fun hashCode(): Int { return arrayOf( mediaTypes, selectionLimit, allowsEditing, aspect, quality, videoMaxDuration, videoQuality ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(mediaTypes: Array, selectionLimit: Double, allowsEditing: Boolean, aspect: ImagePickerCropAspect?, quality: Double, videoMaxDuration: Double, videoQuality: String): ResolvedImagePickerOptions { return ResolvedImagePickerOptions(mediaTypes, selectionLimit, allowsEditing, aspect, quality, videoMaxDuration, videoQuality) } } }