/// /// HybridNitroOrientationSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © 2025 Marc Rousavy @ Margelo /// package com.margelo.nitro.orientation import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.* /** * A Kotlin class representing the NitroOrientation HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroOrientation. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroOrientationSpec: HybridObject() { @DoNotStrip private var mHybridData: HybridData = initHybrid() init { super.updateNative(mHybridData) } override fun updateNative(hybridData: HybridData) { mHybridData = hybridData super.updateNative(hybridData) } // Properties // Methods @DoNotStrip @Keep abstract fun getOrientation(): String @DoNotStrip @Keep abstract fun getDeviceOrientation(): String @DoNotStrip @Keep abstract fun lockToPortrait(): Unit @DoNotStrip @Keep abstract fun lockToPortraitUpsideDown(): Unit @DoNotStrip @Keep abstract fun lockToLandscape(): Unit @DoNotStrip @Keep abstract fun lockToLandscapeLeft(): Unit @DoNotStrip @Keep abstract fun lockToLandscapeRight(): Unit @DoNotStrip @Keep abstract fun unlockAllOrientations(): Unit @DoNotStrip @Keep abstract fun getAutoRotateState(): Boolean abstract fun setChangeListener(listener: (orientation: String) -> Unit): Unit @DoNotStrip @Keep private fun setChangeListener_cxx(listener: Func_void_std__string): Unit { val __result = setChangeListener(listener) return __result } private external fun initHybrid(): HybridData companion object { private const val TAG = "HybridNitroOrientationSpec" } }