/// /// HybridNitroShareIntentSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © 2026 Marc Rousavy @ Margelo /// package com.margelo.nitro.nitroshareintent import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the NitroShareIntent HybridObject. * Implement this abstract class to create Kotlin-based instances of NitroShareIntent. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridNitroShareIntentSpec: HybridObject() { @DoNotStrip private var mHybridData: HybridData = initHybrid() init { super.updateNative(mHybridData) } override fun updateNative(hybridData: HybridData) { mHybridData = hybridData super.updateNative(hybridData) } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject NitroShareIntent]" } // Properties // Methods @DoNotStrip @Keep abstract fun getInitialShare(): Promise abstract fun onIntentListener(listener: (payload: SharePayload) -> Unit): Double @DoNotStrip @Keep private fun onIntentListener_cxx(listener: Func_void_SharePayload): Double { val __result = onIntentListener(listener) return __result } abstract fun onErrorListener(listener: (message: String) -> Unit): Double @DoNotStrip @Keep private fun onErrorListener_cxx(listener: Func_void_std__string): Double { val __result = onErrorListener(listener) return __result } @DoNotStrip @Keep abstract fun removeListener(listenerId: Double): Unit @DoNotStrip @Keep abstract fun clearShareIntent(): Unit private external fun initHybrid(): HybridData companion object { protected const val TAG = "HybridNitroShareIntentSpec" } }