/// /// HybridRiveFileFactorySpec.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.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the RiveFileFactory HybridObject. * Implement this abstract class to create Kotlin-based instances of RiveFileFactory. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRiveFileFactorySpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun fromURL(url: String, loadCdn: Boolean, referencedAssets: ReferencedAssetsType?): Promise @DoNotStrip @Keep abstract fun fromFileURL(fileURL: String, loadCdn: Boolean, referencedAssets: ReferencedAssetsType?): Promise @DoNotStrip @Keep abstract fun fromResource(resource: String, loadCdn: Boolean, referencedAssets: ReferencedAssetsType?): Promise @DoNotStrip @Keep abstract fun fromBytes(bytes: ArrayBuffer, loadCdn: Boolean, referencedAssets: ReferencedAssetsType?): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject RiveFileFactory]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRiveFileFactorySpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRiveFileFactorySpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRiveFileFactorySpec" } }