/// /// HybridOneSpeechSynthesisSpec.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.one import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import dalvik.annotation.optimization.FastNative import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the OneSpeechSynthesis HybridObject. * Implement this abstract class to create Kotlin-based instances of OneSpeechSynthesis. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneSpeechSynthesisSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val maxInputLength: Double // Methods abstract fun speak(utterance: SpeechSynthesisUtterance, onEvent: (event: SpeechSynthesisEvent) -> Unit): Unit @DoNotStrip @Keep private fun speak_cxx(utterance: SpeechSynthesisUtterance, onEvent: Func_void_SpeechSynthesisEvent): Unit { val __result = speak(utterance, onEvent) return __result } @DoNotStrip @Keep abstract fun stop(): Promise @DoNotStrip @Keep abstract fun pause(): Promise @DoNotStrip @Keep abstract fun resume(): Promise @DoNotStrip @Keep abstract fun isSpeaking(): Promise @DoNotStrip @Keep abstract fun getAvailableVoices(): Promise> // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneSpeechSynthesis]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneSpeechSynthesisSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneSpeechSynthesisSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneSpeechSynthesisSpec" } }