/// /// HybridCameraSessionSpec.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 CameraSession HybridObject. * Implement this abstract class to create Kotlin-based instances of CameraSession. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridCameraSessionSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val isRunning: Boolean // Methods @DoNotStrip @Keep abstract fun configure(connections: Array, config: CameraSessionConfiguration?): Promise> @DoNotStrip @Keep abstract fun start(): Promise @DoNotStrip @Keep abstract fun stop(): Promise abstract fun addOnStartedListener(onStarted: () -> Unit): ListenerSubscription @DoNotStrip @Keep private fun addOnStartedListener_cxx(onStarted: Func_void): ListenerSubscription { val __result = addOnStartedListener(onStarted) return __result } abstract fun addOnStoppedListener(onStopped: () -> Unit): ListenerSubscription @DoNotStrip @Keep private fun addOnStoppedListener_cxx(onStopped: Func_void): ListenerSubscription { val __result = addOnStoppedListener(onStopped) return __result } abstract fun addOnErrorListener(onError: (error: Throwable) -> Unit): ListenerSubscription @DoNotStrip @Keep private fun addOnErrorListener_cxx(onError: Func_void_std__exception_ptr): ListenerSubscription { val __result = addOnErrorListener(onError) return __result } abstract fun addOnInterruptionStartedListener(onInterruptionStarted: (reason: InterruptionReason) -> Unit): ListenerSubscription @DoNotStrip @Keep private fun addOnInterruptionStartedListener_cxx(onInterruptionStarted: Func_void_InterruptionReason): ListenerSubscription { val __result = addOnInterruptionStartedListener(onInterruptionStarted) return __result } abstract fun addOnInterruptionEndedListener(onInterruptionEnded: () -> Unit): ListenerSubscription @DoNotStrip @Keep private fun addOnInterruptionEndedListener_cxx(onInterruptionEnded: Func_void): ListenerSubscription { val __result = addOnInterruptionEndedListener(onInterruptionEnded) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject CameraSession]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridCameraSessionSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridCameraSessionSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridCameraSessionSpec" } }