/// /// HybridTextRecognizerSpec.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.visioncameraocrplus 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 TextRecognizer HybridObject. * Implement this abstract class to create Kotlin-based instances of TextRecognizer. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridTextRecognizerSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun recognizePhoto(uri: String, orientation: String): Promise abstract fun scanFrame(nativeBufferPointer: ULong, orientation: String): RecognizedText? @DoNotStrip @Keep private fun scanFrame_cxx(nativeBufferPointer: Long, orientation: String): RecognizedText? { val __result = scanFrame(nativeBufferPointer.toULong(), orientation) return __result } @DoNotStrip @Keep abstract fun configure(config: TextRecognitionConfig): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject TextRecognizer]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridTextRecognizerSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridTextRecognizerSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridTextRecognizerSpec" } }