/// /// NitroVisionCameraOcrPlusOnLoad.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 android.util.Log internal class NitroVisionCameraOcrPlusOnLoad { companion object { private const val TAG = "NitroVisionCameraOcrPlusOnLoad" private var didLoad = false /** * Initializes the native part of "NitroVisionCameraOcrPlus". * This method is idempotent and can be called more than once. */ @JvmStatic fun initializeNative() { if (didLoad) return try { Log.i(TAG, "Loading NitroVisionCameraOcrPlus C++ library...") System.loadLibrary("NitroVisionCameraOcrPlus") Log.i(TAG, "Successfully loaded NitroVisionCameraOcrPlus C++ library!") didLoad = true } catch (e: Error) { Log.e(TAG, "Failed to load NitroVisionCameraOcrPlus C++ library! Is it properly installed and linked? " + "Is the name correct? (see `CMakeLists.txt`, at `add_library(...)`)", e) throw e } } } }