/// /// HybridPreviewViewSpec.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.image.HybridImageSpec import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject import com.margelo.nitro.views.HybridView /** * A Kotlin class representing the PreviewView HybridObject. * Implement this abstract class to create Kotlin-based instances of PreviewView. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridPreviewViewSpec: HybridView() { // Properties @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var previewOutput: HybridCameraPreviewOutputSpec? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var resizeMode: PreviewResizeMode? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var implementationMode: PreviewImplementationMode? @get:DoNotStrip @get:Keep @set:DoNotStrip @set:Keep abstract var gestureControllers: Array? abstract var onPreviewStarted: (() -> Unit)? private var onPreviewStarted_cxx: Func_void? @Keep @DoNotStrip get() { return onPreviewStarted?.let { Func_void_java(it) } } @Keep @DoNotStrip set(value) { onPreviewStarted = value?.let { it } } abstract var onPreviewStopped: (() -> Unit)? private var onPreviewStopped_cxx: Func_void? @Keep @DoNotStrip get() { return onPreviewStopped?.let { Func_void_java(it) } } @Keep @DoNotStrip set(value) { onPreviewStopped = value?.let { it } } // Methods @DoNotStrip @Keep abstract fun createMeteringPoint(viewX: Double, viewY: Double, size: Double?): HybridMeteringPointSpec @DoNotStrip @Keep abstract fun takeSnapshot(): Promise @DoNotStrip @Keep abstract fun convertCameraPointToViewPoint(cameraPoint: Point): Point @DoNotStrip @Keep abstract fun convertViewPointToCameraPoint(viewPoint: Point): Point @DoNotStrip @Keep abstract fun convertScannedObjectCoordinatesToViewCoordinates(scannedObject: HybridScannedObjectSpec): HybridScannedObjectSpec // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject PreviewView]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridPreviewViewSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridPreviewViewSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridPreviewViewSpec" } }