/// /// HybridRiveFileSpec.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.rive import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the RiveFile HybridObject. * Implement this abstract class to create Kotlin-based instances of RiveFile. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRiveFileSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val viewModelCount: Double? @get:DoNotStrip @get:Keep abstract val artboardCount: Double @get:DoNotStrip @get:Keep abstract val artboardNames: Array // Methods @DoNotStrip @Keep abstract fun viewModelByIndex(index: Double): HybridViewModelSpec? @DoNotStrip @Keep abstract fun viewModelByName(name: String): HybridViewModelSpec? @DoNotStrip @Keep abstract fun defaultArtboardViewModel(artboardBy: ArtboardBy?): HybridViewModelSpec? @DoNotStrip @Keep abstract fun updateReferencedAssets(referencedAssets: ReferencedAssetsType): Unit @DoNotStrip @Keep abstract fun getViewModelNamesAsync(): Promise> @DoNotStrip @Keep abstract fun viewModelByNameAsync(name: String, validate: Boolean?): Promise @DoNotStrip @Keep abstract fun defaultArtboardViewModelAsync(artboardBy: ArtboardBy?): Promise @DoNotStrip @Keep abstract fun getArtboardCountAsync(): Promise @DoNotStrip @Keep abstract fun getArtboardNamesAsync(): Promise> @DoNotStrip @Keep abstract fun getBindableArtboard(name: String): HybridBindableArtboardSpec // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject RiveFile]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRiveFileSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRiveFileSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRiveFileSpec" } }