/// /// BrowserNativeOptions.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 "BrowserNativeOptions". */ @DoNotStrip @Keep data class BrowserNativeOptions( @DoNotStrip @Keep val presentationStyle: BrowserPresentationStyle?, @DoNotStrip @Keep val browserPackage: String?, @DoNotStrip @Keep val toolbarColor: String?, @DoNotStrip @Keep val secondaryToolbarColor: String?, @DoNotStrip @Keep val controlsColor: String?, @DoNotStrip @Keep val showTitle: Boolean?, @DoNotStrip @Keep val preferEphemeralSession: Boolean?, @DoNotStrip @Keep val colorScheme: BrowserColorScheme? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is BrowserNativeOptions) return false return Objects.deepEquals(this.presentationStyle, other.presentationStyle) && Objects.deepEquals(this.browserPackage, other.browserPackage) && Objects.deepEquals(this.toolbarColor, other.toolbarColor) && Objects.deepEquals(this.secondaryToolbarColor, other.secondaryToolbarColor) && Objects.deepEquals(this.controlsColor, other.controlsColor) && Objects.deepEquals(this.showTitle, other.showTitle) && Objects.deepEquals(this.preferEphemeralSession, other.preferEphemeralSession) && Objects.deepEquals(this.colorScheme, other.colorScheme) } override fun hashCode(): Int { return arrayOf( presentationStyle, browserPackage, toolbarColor, secondaryToolbarColor, controlsColor, showTitle, preferEphemeralSession, colorScheme ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(presentationStyle: BrowserPresentationStyle?, browserPackage: String?, toolbarColor: String?, secondaryToolbarColor: String?, controlsColor: String?, showTitle: Boolean?, preferEphemeralSession: Boolean?, colorScheme: BrowserColorScheme?): BrowserNativeOptions { return BrowserNativeOptions(presentationStyle, browserPackage, toolbarColor, secondaryToolbarColor, controlsColor, showTitle, preferEphemeralSession, colorScheme) } } }