/// /// HybridOrientationManagerSpec.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 OrientationManager HybridObject. * Implement this abstract class to create Kotlin-based instances of OrientationManager. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridOrientationManagerSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val source: OrientationSource @get:DoNotStrip @get:Keep abstract val currentOrientation: CameraOrientation? // Methods abstract fun startOrientationUpdates(onChanged: (orientation: CameraOrientation) -> Unit): Unit @DoNotStrip @Keep private fun startOrientationUpdates_cxx(onChanged: Func_void_CameraOrientation): Unit { val __result = startOrientationUpdates(onChanged) return __result } @DoNotStrip @Keep abstract fun stopOrientationUpdates(): Unit // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject OrientationManager]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridOrientationManagerSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridOrientationManagerSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridOrientationManagerSpec" } }