/// /// HybridCameraFrameOutputSpec.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.HybridObject /** * A Kotlin class representing the CameraFrameOutput HybridObject. * Implement this abstract class to create Kotlin-based instances of CameraFrameOutput. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridCameraFrameOutputSpec: HybridCameraOutputSpec() { // Properties @get:DoNotStrip @get:Keep abstract val thread: HybridNativeThreadSpec // Methods abstract fun setOnFrameCallback(onFrame: ((frame: HybridFrameSpec) -> Boolean)?): Unit @DoNotStrip @Keep private fun setOnFrameCallback_cxx(onFrame: Func_bool_std__shared_ptr_HybridFrameSpec_?): Unit { val __result = setOnFrameCallback(onFrame?.let { it }) return __result } abstract fun setOnFrameDroppedCallback(onFrameDropped: ((reason: FrameDroppedReason) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnFrameDroppedCallback_cxx(onFrameDropped: Func_void_FrameDroppedReason?): Unit { val __result = setOnFrameDroppedCallback(onFrameDropped?.let { it }) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject CameraFrameOutput]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridCameraFrameOutputSpec): HybridCameraOutputSpec.CxxPart(javaPart) { // C++ JHybridCameraFrameOutputSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridCameraFrameOutputSpec" } }