/// /// Preferences.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.reactnativereadium import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip /** * Represents the JavaScript object/struct "Preferences". */ @DoNotStrip @Keep data class Preferences( @DoNotStrip @Keep val backgroundColor: String?, @DoNotStrip @Keep val columnCount: String?, @DoNotStrip @Keep val fontFamily: String?, @DoNotStrip @Keep val fontSize: Double?, @DoNotStrip @Keep val fontWeight: Double?, @DoNotStrip @Keep val hyphens: Boolean?, @DoNotStrip @Keep val imageFilter: String?, @DoNotStrip @Keep val language: String?, @DoNotStrip @Keep val letterSpacing: Double?, @DoNotStrip @Keep val ligatures: Boolean?, @DoNotStrip @Keep val lineHeight: Double?, @DoNotStrip @Keep val pageMargins: Double?, @DoNotStrip @Keep val paragraphIndent: Double?, @DoNotStrip @Keep val paragraphSpacing: Double?, @DoNotStrip @Keep val publisherStyles: Boolean?, @DoNotStrip @Keep val readingProgression: String?, @DoNotStrip @Keep val scroll: Boolean?, @DoNotStrip @Keep val spread: String?, @DoNotStrip @Keep val textAlign: String?, @DoNotStrip @Keep val textColor: String?, @DoNotStrip @Keep val textNormalization: Boolean?, @DoNotStrip @Keep val theme: String?, @DoNotStrip @Keep val typeScale: Double?, @DoNotStrip @Keep val verticalText: Boolean?, @DoNotStrip @Keep val wordSpacing: Double?, @DoNotStrip @Keep val merging: Boolean? ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(backgroundColor: String?, columnCount: String?, fontFamily: String?, fontSize: Double?, fontWeight: Double?, hyphens: Boolean?, imageFilter: String?, language: String?, letterSpacing: Double?, ligatures: Boolean?, lineHeight: Double?, pageMargins: Double?, paragraphIndent: Double?, paragraphSpacing: Double?, publisherStyles: Boolean?, readingProgression: String?, scroll: Boolean?, spread: String?, textAlign: String?, textColor: String?, textNormalization: Boolean?, theme: String?, typeScale: Double?, verticalText: Boolean?, wordSpacing: Double?, merging: Boolean?): Preferences { return Preferences(backgroundColor, columnCount, fontFamily, fontSize, fontWeight, hyphens, imageFilter, language, letterSpacing, ligatures, lineHeight, pageMargins, paragraphIndent, paragraphSpacing, publisherStyles, readingProgression, scroll, spread, textAlign, textColor, textNormalization, theme, typeScale, verticalText, wordSpacing, merging) } } }