/// /// HybridViewModelInstanceSpec.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 ViewModelInstance HybridObject. * Implement this abstract class to create Kotlin-based instances of ViewModelInstance. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridViewModelInstanceSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val instanceName: String // Methods @DoNotStrip @Keep abstract fun numberProperty(path: String): HybridViewModelNumberPropertySpec? @DoNotStrip @Keep abstract fun stringProperty(path: String): HybridViewModelStringPropertySpec? @DoNotStrip @Keep abstract fun booleanProperty(path: String): HybridViewModelBooleanPropertySpec? @DoNotStrip @Keep abstract fun colorProperty(path: String): HybridViewModelColorPropertySpec? @DoNotStrip @Keep abstract fun enumProperty(path: String): HybridViewModelEnumPropertySpec? @DoNotStrip @Keep abstract fun triggerProperty(path: String): HybridViewModelTriggerPropertySpec? @DoNotStrip @Keep abstract fun imageProperty(path: String): HybridViewModelImagePropertySpec? @DoNotStrip @Keep abstract fun listProperty(path: String): HybridViewModelListPropertySpec? @DoNotStrip @Keep abstract fun artboardProperty(path: String): HybridViewModelArtboardPropertySpec? @DoNotStrip @Keep abstract fun viewModel(path: String): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun viewModelAsync(path: String): Promise @DoNotStrip @Keep abstract fun replaceViewModel(path: String, instance: HybridViewModelInstanceSpec): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject ViewModelInstance]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridViewModelInstanceSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridViewModelInstanceSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridViewModelInstanceSpec" } }