/// /// HybridRiveViewSpec.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 import com.margelo.nitro.views.HybridView /** * A Kotlin class representing the RiveView HybridObject. * Implement this abstract class to create Kotlin-based instances of RiveView. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRiveViewSpec: HybridView() { // Properties @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var artboardName: String? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var stateMachineName: String? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var autoPlay: Boolean? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var file: HybridRiveFileSpec @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var alignment: Alignment? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var fit: Fit? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var layoutScaleFactor: Double? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var dataBind: Variant_HybridViewModelInstanceSpec_DataBindMode_DataBindByName? abstract var onError: (error: RiveError) -> Unit private var onError_cxx: Func_void_RiveError @Keep @DoNotStrip get() { return Func_void_RiveError_java(onError) } @Keep @DoNotStrip set(value) { onError = value } // Methods @DoNotStrip @Keep abstract fun awaitViewReady(): Promise @DoNotStrip @Keep abstract fun bindViewModelInstance(viewModelInstance: HybridViewModelInstanceSpec): Unit @DoNotStrip @Keep abstract fun getViewModelInstance(): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun play(): Promise @DoNotStrip @Keep abstract fun pause(): Promise @DoNotStrip @Keep abstract fun reset(): Promise @DoNotStrip @Keep abstract fun playIfNeeded(): Unit abstract fun onEventListener(onEvent: (event: UnifiedRiveEvent) -> Unit): Unit @DoNotStrip @Keep private fun onEventListener_cxx(onEvent: Func_void_UnifiedRiveEvent): Unit { val __result = onEventListener(onEvent) return __result } @DoNotStrip @Keep abstract fun removeEventListeners(): Unit @DoNotStrip @Keep abstract fun setNumberInputValue(name: String, value: Double, path: String?): Unit @DoNotStrip @Keep abstract fun getNumberInputValue(name: String, path: String?): Double @DoNotStrip @Keep abstract fun setBooleanInputValue(name: String, value: Boolean, path: String?): Unit @DoNotStrip @Keep abstract fun getBooleanInputValue(name: String, path: String?): Boolean @DoNotStrip @Keep abstract fun triggerInput(name: String, path: String?): Unit @DoNotStrip @Keep abstract fun setTextRunValue(name: String, value: String, path: String?): Unit @DoNotStrip @Keep abstract fun getTextRunValue(name: String, path: String?): String // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject RiveView]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRiveViewSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRiveViewSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRiveViewSpec" } }