/// /// HybridNativeListDataSourceSpec.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.reactnativelist import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NativeListDataSource HybridObject. * Implement this abstract class to create Kotlin-based instances of NativeListDataSource. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNativeListDataSourceSpec: HybridObject() { // Properties // Methods abstract fun setContentEqualCallback(isContentEqual: (oldItem: NativeListItem, newItem: NativeListItem) -> Boolean): Unit @DoNotStrip @Keep private fun setContentEqualCallback_cxx(isContentEqual: Func_bool_NativeListItem_NativeListItem): Unit { val __result = setContentEqualCallback(isContentEqual) return __result } @DoNotStrip @Keep abstract fun replaceData(items: Array, animated: Boolean): Unit @DoNotStrip @Keep abstract fun insertItem(index: Double, item: NativeListItem): Unit @DoNotStrip @Keep abstract fun updateItem(index: Double, item: NativeListItem): Unit @DoNotStrip @Keep abstract fun removeItem(index: Double): Unit @DoNotStrip @Keep abstract fun moveItem(fromIndex: Double, toIndex: Double): Unit @DoNotStrip @Keep abstract fun getCount(): Double @DoNotStrip @Keep abstract fun getItem(index: Double): NativeListItem // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NativeListDataSource]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridNativeListDataSourceSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridNativeListDataSourceSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridNativeListDataSourceSpec" } }