/// /// HybridReadiumViewSpec.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.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.HybridObject import com.margelo.nitro.views.HybridView /** * A Kotlin class representing the ReadiumView HybridObject. * Implement this abstract class to create Kotlin-based instances of ReadiumView. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridReadiumViewSpec: HybridView() { // Properties @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var file: ReadiumFile? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var preferences: Preferences? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var decorations: Array? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var selectionActions: Array? abstract var onLocationChange: ((locator: Locator) -> Unit)? private var onLocationChange_cxx: Func_void_Locator? @Keep @DoNotStrip get() { return onLocationChange?.let { Func_void_Locator_java(it) } } @Keep @DoNotStrip set(value) { onLocationChange = value?.let { it } } abstract var onPublicationReady: ((event: PublicationReadyEvent) -> Unit)? private var onPublicationReady_cxx: Func_void_PublicationReadyEvent? @Keep @DoNotStrip get() { return onPublicationReady?.let { Func_void_PublicationReadyEvent_java(it) } } @Keep @DoNotStrip set(value) { onPublicationReady = value?.let { it } } abstract var onDecorationActivated: ((event: DecorationActivatedEvent) -> Unit)? private var onDecorationActivated_cxx: Func_void_DecorationActivatedEvent? @Keep @DoNotStrip get() { return onDecorationActivated?.let { Func_void_DecorationActivatedEvent_java(it) } } @Keep @DoNotStrip set(value) { onDecorationActivated = value?.let { it } } abstract var onSelectionChange: ((event: SelectionEvent) -> Unit)? private var onSelectionChange_cxx: Func_void_SelectionEvent? @Keep @DoNotStrip get() { return onSelectionChange?.let { Func_void_SelectionEvent_java(it) } } @Keep @DoNotStrip set(value) { onSelectionChange = value?.let { it } } abstract var onSelectionAction: ((event: SelectionActionEvent) -> Unit)? private var onSelectionAction_cxx: Func_void_SelectionActionEvent? @Keep @DoNotStrip get() { return onSelectionAction?.let { Func_void_SelectionActionEvent_java(it) } } @Keep @DoNotStrip set(value) { onSelectionAction = value?.let { it } } // Methods @DoNotStrip @Keep abstract fun goTo(locator: Locator): Unit @DoNotStrip @Keep abstract fun goForward(): Unit @DoNotStrip @Keep abstract fun goBackward(): Unit @DoNotStrip @Keep abstract fun destroy(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject ReadiumView]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridReadiumViewSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridReadiumViewSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridReadiumViewSpec" } }