/// /// HybridNitroKeyEventSpec.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.keyevent 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 NitroKeyEvent HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroKeyEvent. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroKeyEventSpec: HybridObject() { @DoNotStrip private var mHybridData: HybridData = initHybrid() init { super.updateNative(mHybridData) } override fun updateNative(hybridData: HybridData) { mHybridData = hybridData super.updateNative(hybridData) } // Properties // Methods abstract fun onKeyDownListener(callback: (keyEvent: KeyEventData) -> Unit): Unit @DoNotStrip @Keep private fun onKeyDownListener_cxx(callback: Func_void_KeyEventData): Unit { val __result = onKeyDownListener(callback) return __result } abstract fun onKeyUpListener(callback: (keyEvent: KeyEventData) -> Unit): Unit @DoNotStrip @Keep private fun onKeyUpListener_cxx(callback: Func_void_KeyEventData): Unit { val __result = onKeyUpListener(callback) return __result } private external fun initHybrid(): HybridData companion object { private const val TAG = "HybridNitroKeyEventSpec" } }