/// /// HybridRnIapSpec.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.iap 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 RnIap HybridObject. * Implement this abstract class to create Kotlin-based instances of RnIap. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridRnIapSpec: 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 initConnection(config: InitConnectionConfig?): Promise @DoNotStrip @Keep abstract fun endConnection(): Promise @DoNotStrip @Keep abstract fun fetchProducts(skus: Array, type: String): Promise> @DoNotStrip @Keep abstract fun requestPurchase(request: NitroPurchaseRequest): Promise @DoNotStrip @Keep abstract fun getAvailablePurchases(options: NitroAvailablePurchasesOptions?): Promise> @DoNotStrip @Keep abstract fun getActiveSubscriptions(subscriptionIds: Array?): Promise> @DoNotStrip @Keep abstract fun hasActiveSubscriptions(subscriptionIds: Array?): Promise @DoNotStrip @Keep abstract fun finishTransaction(params: NitroFinishTransactionParams): Promise abstract fun addPurchaseUpdatedListener(listener: (purchase: NitroPurchase) -> Unit): Unit @DoNotStrip @Keep private fun addPurchaseUpdatedListener_cxx(listener: Func_void_NitroPurchase): Unit { val __result = addPurchaseUpdatedListener(listener) return __result } abstract fun addPurchaseErrorListener(listener: (error: NitroPurchaseResult) -> Unit): Unit @DoNotStrip @Keep private fun addPurchaseErrorListener_cxx(listener: Func_void_NitroPurchaseResult): Unit { val __result = addPurchaseErrorListener(listener) return __result } abstract fun removePurchaseUpdatedListener(listener: (purchase: NitroPurchase) -> Unit): Unit @DoNotStrip @Keep private fun removePurchaseUpdatedListener_cxx(listener: Func_void_NitroPurchase): Unit { val __result = removePurchaseUpdatedListener(listener) return __result } abstract fun removePurchaseErrorListener(listener: (error: NitroPurchaseResult) -> Unit): Unit @DoNotStrip @Keep private fun removePurchaseErrorListener_cxx(listener: Func_void_NitroPurchaseResult): Unit { val __result = removePurchaseErrorListener(listener) return __result } abstract fun addPromotedProductListenerIOS(listener: (product: NitroProduct) -> Unit): Unit @DoNotStrip @Keep private fun addPromotedProductListenerIOS_cxx(listener: Func_void_NitroProduct): Unit { val __result = addPromotedProductListenerIOS(listener) return __result } abstract fun removePromotedProductListenerIOS(listener: (product: NitroProduct) -> Unit): Unit @DoNotStrip @Keep private fun removePromotedProductListenerIOS_cxx(listener: Func_void_NitroProduct): Unit { val __result = removePromotedProductListenerIOS(listener) return __result } @DoNotStrip @Keep abstract fun getStorefrontIOS(): Promise @DoNotStrip @Keep abstract fun getAppTransactionIOS(): Promise @DoNotStrip @Keep abstract fun requestPromotedProductIOS(): Promise @DoNotStrip @Keep abstract fun getPromotedProductIOS(): Promise @DoNotStrip @Keep abstract fun buyPromotedProductIOS(): Promise @DoNotStrip @Keep abstract fun presentCodeRedemptionSheetIOS(): Promise @DoNotStrip @Keep abstract fun clearTransactionIOS(): Promise @DoNotStrip @Keep abstract fun beginRefundRequestIOS(sku: String): Promise @DoNotStrip @Keep abstract fun subscriptionStatusIOS(sku: String): Promise?> @DoNotStrip @Keep abstract fun currentEntitlementIOS(sku: String): Promise @DoNotStrip @Keep abstract fun latestTransactionIOS(sku: String): Promise @DoNotStrip @Keep abstract fun getPendingTransactionsIOS(): Promise> @DoNotStrip @Keep abstract fun syncIOS(): Promise @DoNotStrip @Keep abstract fun showManageSubscriptionsIOS(): Promise> @DoNotStrip @Keep abstract fun deepLinkToSubscriptionsIOS(): Promise @DoNotStrip @Keep abstract fun isEligibleForIntroOfferIOS(groupID: String): Promise @DoNotStrip @Keep abstract fun getReceiptDataIOS(): Promise @DoNotStrip @Keep abstract fun getReceiptIOS(): Promise @DoNotStrip @Keep abstract fun requestReceiptRefreshIOS(): Promise @DoNotStrip @Keep abstract fun isTransactionVerifiedIOS(sku: String): Promise @DoNotStrip @Keep abstract fun getTransactionJwsIOS(sku: String): Promise @DoNotStrip @Keep abstract fun validateReceipt(params: NitroReceiptValidationParams): Promise @DoNotStrip @Keep abstract fun verifyPurchaseWithProvider(params: NitroVerifyPurchaseWithProviderProps): Promise @DoNotStrip @Keep abstract fun getStorefront(): Promise @DoNotStrip @Keep abstract fun deepLinkToSubscriptionsAndroid(options: NitroDeepLinkOptionsAndroid): Promise @DoNotStrip @Keep abstract fun checkAlternativeBillingAvailabilityAndroid(): Promise @DoNotStrip @Keep abstract fun showAlternativeBillingDialogAndroid(): Promise @DoNotStrip @Keep abstract fun createAlternativeBillingTokenAndroid(sku: String?): Promise abstract fun addUserChoiceBillingListenerAndroid(listener: (details: UserChoiceBillingDetails) -> Unit): Unit @DoNotStrip @Keep private fun addUserChoiceBillingListenerAndroid_cxx(listener: Func_void_UserChoiceBillingDetails): Unit { val __result = addUserChoiceBillingListenerAndroid(listener) return __result } abstract fun removeUserChoiceBillingListenerAndroid(listener: (details: UserChoiceBillingDetails) -> Unit): Unit @DoNotStrip @Keep private fun removeUserChoiceBillingListenerAndroid_cxx(listener: Func_void_UserChoiceBillingDetails): Unit { val __result = removeUserChoiceBillingListenerAndroid(listener) return __result } abstract fun addDeveloperProvidedBillingListenerAndroid(listener: (details: DeveloperProvidedBillingDetailsAndroid) -> Unit): Unit @DoNotStrip @Keep private fun addDeveloperProvidedBillingListenerAndroid_cxx(listener: Func_void_DeveloperProvidedBillingDetailsAndroid): Unit { val __result = addDeveloperProvidedBillingListenerAndroid(listener) return __result } abstract fun removeDeveloperProvidedBillingListenerAndroid(listener: (details: DeveloperProvidedBillingDetailsAndroid) -> Unit): Unit @DoNotStrip @Keep private fun removeDeveloperProvidedBillingListenerAndroid_cxx(listener: Func_void_DeveloperProvidedBillingDetailsAndroid): Unit { val __result = removeDeveloperProvidedBillingListenerAndroid(listener) return __result } @DoNotStrip @Keep abstract fun enableBillingProgramAndroid(program: BillingProgramAndroid): Unit @DoNotStrip @Keep abstract fun isBillingProgramAvailableAndroid(program: BillingProgramAndroid): Promise @DoNotStrip @Keep abstract fun createBillingProgramReportingDetailsAndroid(program: BillingProgramAndroid): Promise @DoNotStrip @Keep abstract fun launchExternalLinkAndroid(params: NitroLaunchExternalLinkParamsAndroid): Promise @DoNotStrip @Keep abstract fun canPresentExternalPurchaseNoticeIOS(): Promise @DoNotStrip @Keep abstract fun presentExternalPurchaseNoticeSheetIOS(): Promise @DoNotStrip @Keep abstract fun presentExternalPurchaseLinkIOS(url: String): Promise private external fun initHybrid(): HybridData companion object { protected const val TAG = "HybridRnIapSpec" } }