/// /// HybridPhotoSpec.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.ArrayBuffer import com.margelo.nitro.core.Promise import com.margelo.nitro.image.HybridImageSpec import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the Photo HybridObject. * Implement this abstract class to create Kotlin-based instances of Photo. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridPhotoSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val isMirrored: Boolean @get:DoNotStrip @get:Keep abstract val orientation: CameraOrientation @get:DoNotStrip @get:Keep abstract val timestamp: Double @get:DoNotStrip @get:Keep abstract val isRawPhoto: Boolean @get:DoNotStrip @get:Keep abstract val width: Double @get:DoNotStrip @get:Keep abstract val height: Double @get:DoNotStrip @get:Keep abstract val containerFormat: PhotoContainerFormat @get:DoNotStrip @get:Keep abstract val hasPixelBuffer: Boolean @get:DoNotStrip @get:Keep abstract val depth: HybridDepthSpec? @get:DoNotStrip @get:Keep abstract val calibrationData: HybridCameraCalibrationDataSpec? // Methods @DoNotStrip @Keep abstract fun getPixelBuffer(): ArrayBuffer @DoNotStrip @Keep abstract fun saveToFileAsync(path: String): Promise @DoNotStrip @Keep abstract fun saveToTemporaryFileAsync(): Promise @DoNotStrip @Keep abstract fun getFileData(): ArrayBuffer @DoNotStrip @Keep abstract fun getFileDataAsync(): Promise @DoNotStrip @Keep abstract fun toImage(): com.margelo.nitro.image.HybridImageSpec @DoNotStrip @Keep abstract fun toImageAsync(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject Photo]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridPhotoSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridPhotoSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridPhotoSpec" } }