/// /// HybridSoundSpec.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.sound 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.HybridObject /** * A Kotlin class representing the Sound HybridObject. * Implement this abstract class to create Kotlin-based instances of Sound. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridSoundSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun startRecorder(uri: String?, audioSets: AudioSet?, meteringEnabled: Boolean?): Promise @DoNotStrip @Keep abstract fun pauseRecorder(): Promise @DoNotStrip @Keep abstract fun resumeRecorder(): Promise @DoNotStrip @Keep abstract fun stopRecorder(): Promise @DoNotStrip @Keep abstract fun startPlayer(uri: String?, httpHeaders: Map?): Promise @DoNotStrip @Keep abstract fun stopPlayer(): Promise @DoNotStrip @Keep abstract fun pausePlayer(): Promise @DoNotStrip @Keep abstract fun resumePlayer(): Promise @DoNotStrip @Keep abstract fun seekToPlayer(time: Double): Promise @DoNotStrip @Keep abstract fun setVolume(volume: Double): Promise @DoNotStrip @Keep abstract fun setPlaybackSpeed(playbackSpeed: Double): Promise @DoNotStrip @Keep abstract fun setSubscriptionDuration(sec: Double): Unit abstract fun addRecordBackListener(callback: (recordingMeta: RecordBackType) -> Unit): Unit @DoNotStrip @Keep private fun addRecordBackListener_cxx(callback: Func_void_RecordBackType): Unit { val __result = addRecordBackListener(callback) return __result } @DoNotStrip @Keep abstract fun removeRecordBackListener(): Unit abstract fun addPlayBackListener(callback: (playbackMeta: PlayBackType) -> Unit): Unit @DoNotStrip @Keep private fun addPlayBackListener_cxx(callback: Func_void_PlayBackType): Unit { val __result = addPlayBackListener(callback) return __result } @DoNotStrip @Keep abstract fun removePlayBackListener(): Unit abstract fun addPlaybackEndListener(callback: (playbackEndMeta: PlaybackEndType) -> Unit): Unit @DoNotStrip @Keep private fun addPlaybackEndListener_cxx(callback: Func_void_PlaybackEndType): Unit { val __result = addPlaybackEndListener(callback) return __result } @DoNotStrip @Keep abstract fun removePlaybackEndListener(): Unit @DoNotStrip @Keep abstract fun mmss(secs: Double): String @DoNotStrip @Keep abstract fun mmssss(milisecs: Double): String // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject Sound]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridSoundSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridSoundSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridSoundSpec" } }