/// /// HybridCameraDepthFrameOutputSpec.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 CameraDepthFrameOutput HybridObject. * Implement this abstract class to create Kotlin-based instances of CameraDepthFrameOutput. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridCameraDepthFrameOutputSpec: HybridCameraOutputSpec() { // Properties @get:DoNotStrip @get:Keep abstract val thread: HybridNativeThreadSpec // Methods abstract fun setOnDepthFrameCallback(onDepthFrame: ((depth: HybridDepthSpec) -> Boolean)?): Unit @DoNotStrip @Keep private fun setOnDepthFrameCallback_cxx(onDepthFrame: Func_bool_std__shared_ptr_HybridDepthSpec_?): Unit { val __result = setOnDepthFrameCallback(onDepthFrame?.let { it }) return __result } abstract fun setOnDepthFrameDroppedCallback(onDepthFrameDropped: ((reason: FrameDroppedReason) -> Unit)?): Unit @DoNotStrip @Keep private fun setOnDepthFrameDroppedCallback_cxx(onDepthFrameDropped: Func_void_FrameDroppedReason?): Unit { val __result = setOnDepthFrameDroppedCallback(onDepthFrameDropped?.let { it }) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject CameraDepthFrameOutput]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridCameraDepthFrameOutputSpec): HybridCameraOutputSpec.CxxPart(javaPart) { // C++ JHybridCameraDepthFrameOutputSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridCameraDepthFrameOutputSpec" } }