/// /// HybridRecorderSpec.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.camera 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 Recorder HybridObject. * Implement this abstract class to create Kotlin-based instances of Recorder. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRecorderSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val isRecording: Boolean @get:DoNotStrip @get:Keep abstract val isPaused: Boolean @get:DoNotStrip @get:Keep abstract val recordedDuration: Double @get:DoNotStrip @get:Keep abstract val recordedFileSize: Double @get:DoNotStrip @get:Keep abstract val filePath: String // Methods abstract fun startRecording(onRecordingFinished: (filePath: String, reason: RecordingFinishedReason) -> Unit, onRecordingError: (error: Throwable) -> Unit, onRecordingPaused: (() -> Unit)?, onRecordingResumed: (() -> Unit)?): Promise @DoNotStrip @Keep private fun startRecording_cxx(onRecordingFinished: Func_void_std__string_RecordingFinishedReason, onRecordingError: Func_void_std__exception_ptr, onRecordingPaused: Func_void?, onRecordingResumed: Func_void?): Promise { val __result = startRecording(onRecordingFinished, onRecordingError, onRecordingPaused?.let { it }, onRecordingResumed?.let { it }) return __result } @DoNotStrip @Keep abstract fun stopRecording(): Promise @DoNotStrip @Keep abstract fun pauseRecording(): Promise @DoNotStrip @Keep abstract fun resumeRecording(): Promise @DoNotStrip @Keep abstract fun cancelRecording(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject Recorder]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRecorderSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRecorderSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRecorderSpec" } }