/// /// UnistylesNativeMiniRuntime.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.unistyles import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "UnistylesNativeMiniRuntime". */ @DoNotStrip @Keep data class UnistylesNativeMiniRuntime( @DoNotStrip @Keep val colorScheme: ColorScheme, @DoNotStrip @Keep val screen: Dimensions, @DoNotStrip @Keep val contentSizeCategory: String, @DoNotStrip @Keep val insets: Insets, @DoNotStrip @Keep val pixelRatio: Double, @DoNotStrip @Keep val fontScale: Double, @DoNotStrip @Keep val rtl: Boolean, @DoNotStrip @Keep val statusBar: Dimensions, @DoNotStrip @Keep val navigationBar: Dimensions, @DoNotStrip @Keep val isPortrait: Boolean, @DoNotStrip @Keep val isLandscape: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is UnistylesNativeMiniRuntime) return false return Objects.deepEquals(this.colorScheme, other.colorScheme) && Objects.deepEquals(this.screen, other.screen) && Objects.deepEquals(this.contentSizeCategory, other.contentSizeCategory) && Objects.deepEquals(this.insets, other.insets) && Objects.deepEquals(this.pixelRatio, other.pixelRatio) && Objects.deepEquals(this.fontScale, other.fontScale) && Objects.deepEquals(this.rtl, other.rtl) && Objects.deepEquals(this.statusBar, other.statusBar) && Objects.deepEquals(this.navigationBar, other.navigationBar) && Objects.deepEquals(this.isPortrait, other.isPortrait) && Objects.deepEquals(this.isLandscape, other.isLandscape) } override fun hashCode(): Int { return arrayOf( colorScheme, screen, contentSizeCategory, insets, pixelRatio, fontScale, rtl, statusBar, navigationBar, isPortrait, isLandscape ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(colorScheme: ColorScheme, screen: Dimensions, contentSizeCategory: String, insets: Insets, pixelRatio: Double, fontScale: Double, rtl: Boolean, statusBar: Dimensions, navigationBar: Dimensions, isPortrait: Boolean, isLandscape: Boolean): UnistylesNativeMiniRuntime { return UnistylesNativeMiniRuntime(colorScheme, screen, contentSizeCategory, insets, pixelRatio, fontScale, rtl, statusBar, navigationBar, isPortrait, isLandscape) } } }