/// /// HybridViewModelSpec.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 ViewModel HybridObject. * Implement this abstract class to create Kotlin-based instances of ViewModel. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridViewModelSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val propertyCount: Double @get:DoNotStrip @get:Keep abstract val instanceCount: Double @get:DoNotStrip @get:Keep abstract val modelName: String // Methods @DoNotStrip @Keep abstract fun getPropertyCountAsync(): Promise @DoNotStrip @Keep abstract fun getInstanceCountAsync(): Promise @DoNotStrip @Keep abstract fun createInstanceByIndex(index: Double): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun createInstanceByName(name: String): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun createDefaultInstance(): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun createInstance(): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun createInstanceByNameAsync(name: String): Promise @DoNotStrip @Keep abstract fun createDefaultInstanceAsync(): Promise @DoNotStrip @Keep abstract fun createBlankInstanceAsync(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject ViewModel]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridViewModelSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridViewModelSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridViewModelSpec" } }