/// /// HybridRiveFontConfigSpec.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 RiveFontConfig HybridObject. * Implement this abstract class to create Kotlin-based instances of RiveFontConfig. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRiveFontConfigSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun loadFontFromURL(url: String): Promise @DoNotStrip @Keep abstract fun loadFontFromResource(resource: String): HybridFallbackFontSpec @DoNotStrip @Keep abstract fun loadFontFromBytes(bytes: ArrayBuffer): HybridFallbackFontSpec @DoNotStrip @Keep abstract fun loadFontByName(name: String): HybridFallbackFontSpec @DoNotStrip @Keep abstract fun getSystemDefaultFont(): HybridFallbackFontSpec @DoNotStrip @Keep abstract fun setFontsForWeight(weight: Double, fonts: Array): Unit @DoNotStrip @Keep abstract fun applyFallbackFonts(): Promise @DoNotStrip @Keep abstract fun clearFallbackFonts(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject RiveFontConfig]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRiveFontConfigSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRiveFontConfigSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRiveFontConfigSpec" } }