/// /// HybridViewModelListPropertySpec.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 ViewModelListProperty HybridObject. * Implement this abstract class to create Kotlin-based instances of ViewModelListProperty. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridViewModelListPropertySpec: HybridViewModelPropertySpec() { // Properties @get:DoNotStrip @get:Keep abstract val length: Double // Methods @DoNotStrip @Keep abstract fun getInstanceAt(index: Double): HybridViewModelInstanceSpec? @DoNotStrip @Keep abstract fun getLengthAsync(): Promise @DoNotStrip @Keep abstract fun getInstanceAtAsync(index: Double): Promise @DoNotStrip @Keep abstract fun addInstance(instance: HybridViewModelInstanceSpec): Unit @DoNotStrip @Keep abstract fun addInstanceAt(instance: HybridViewModelInstanceSpec, index: Double): Boolean @DoNotStrip @Keep abstract fun removeInstance(instance: HybridViewModelInstanceSpec): Unit @DoNotStrip @Keep abstract fun removeInstanceAt(index: Double): Unit @DoNotStrip @Keep abstract fun swap(index1: Double, index2: Double): Boolean @DoNotStrip @Keep abstract fun addInstanceAsync(instance: HybridViewModelInstanceSpec): Promise @DoNotStrip @Keep abstract fun addInstanceAtAsync(instance: HybridViewModelInstanceSpec, index: Double): Promise @DoNotStrip @Keep abstract fun removeInstanceAsync(instance: HybridViewModelInstanceSpec): Promise @DoNotStrip @Keep abstract fun removeInstanceAtAsync(index: Double): Promise @DoNotStrip @Keep abstract fun swapAsync(index1: Double, index2: Double): Promise abstract fun addListener(onChanged: () -> Unit): () -> Unit @DoNotStrip @Keep private fun addListener_cxx(onChanged: Func_void): Func_void { val __result = addListener(onChanged) return Func_void_java(__result) } @DoNotStrip @Keep abstract fun removeListeners(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject ViewModelListProperty]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridViewModelListPropertySpec): HybridViewModelPropertySpec.CxxPart(javaPart) { // C++ JHybridViewModelListPropertySpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridViewModelListPropertySpec" } }