/// /// HybridImageFactorySpec.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.image 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 ImageFactory HybridObject. * Implement this abstract class to create Kotlin-based instances of ImageFactory. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridImageFactorySpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun createBlankImage(width: Double, height: Double, enableAlpha: Boolean, fill: Color?): HybridImageSpec @DoNotStrip @Keep abstract fun createBlankImageAsync(width: Double, height: Double, enableAlpha: Boolean, fill: Color?): Promise @DoNotStrip @Keep abstract fun loadFromFile(filePath: String): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromFileAsync(filePath: String): Promise @DoNotStrip @Keep abstract fun loadFromResources(name: String): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromResourcesAsync(name: String): Promise @DoNotStrip @Keep abstract fun loadFromSymbol(symbolName: String): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromRawPixelData(data: RawPixelData, allowGpu: Boolean?): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromRawPixelDataAsync(data: RawPixelData, allowGpu: Boolean?): Promise @DoNotStrip @Keep abstract fun loadFromEncodedImageData(data: EncodedImageData): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromEncodedImageDataAsync(data: EncodedImageData): Promise @DoNotStrip @Keep abstract fun loadFromThumbHash(thumbhash: ArrayBuffer): HybridImageSpec @DoNotStrip @Keep abstract fun loadFromThumbHashAsync(thumbhash: ArrayBuffer): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject ImageFactory]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridImageFactorySpec): HybridObject.CxxPart(javaPart) { // C++ JHybridImageFactorySpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridImageFactorySpec" } }