/// /// HybridOneSpeechSpec.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 OneSpeech HybridObject. * Implement this abstract class to create Kotlin-based instances of OneSpeech. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOneSpeechSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun isAvailable(): Boolean @DoNotStrip @Keep abstract fun getPermissions(): Promise @DoNotStrip @Keep abstract fun requestPermissions(): Promise abstract fun start(options: SpeechStartOptions, onEvent: (event: SpeechEvent) -> Unit): Unit @DoNotStrip @Keep private fun start_cxx(options: SpeechStartOptions, onEvent: Func_void_SpeechEvent): Unit { val __result = start(options, onEvent) return __result } @DoNotStrip @Keep abstract fun stop(): Unit @DoNotStrip @Keep abstract fun abort(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OneSpeech]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOneSpeechSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOneSpeechSpec::CxxPart::initHybrid(...) @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOneSpeechSpec" } }