/// /// HybridRnIapSpec.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.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.NullType 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() { // Properties // Methods @DoNotStrip @Keep abstract fun initConnection(config: Variant_NullType_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, options: PurchaseUpdatedListenerOptions?): Double @DoNotStrip @Keep private fun addPurchaseUpdatedListener_cxx(listener: Func_void_NitroPurchase, options: PurchaseUpdatedListenerOptions?): Double { val __result = addPurchaseUpdatedListener(listener, options) 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 } @DoNotStrip @Keep abstract fun removePurchaseUpdatedListener(token: Double): Unit 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 getAllTransactionsIOS(): 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: Variant_NullType_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 } abstract fun addSubscriptionBillingIssueListener(listener: (purchase: NitroPurchase) -> Unit): Unit @DoNotStrip @Keep private fun addSubscriptionBillingIssueListener_cxx(listener: Func_void_NitroPurchase): Unit { val __result = addSubscriptionBillingIssueListener(listener) return __result } abstract fun removeSubscriptionBillingIssueListener(listener: (purchase: NitroPurchase) -> Unit): Unit @DoNotStrip @Keep private fun removeSubscriptionBillingIssueListener_cxx(listener: Func_void_NitroPurchase): Unit { val __result = removeSubscriptionBillingIssueListener(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 @DoNotStrip @Keep abstract fun isEligibleForExternalPurchaseCustomLinkIOS(): Promise @DoNotStrip @Keep abstract fun getExternalPurchaseCustomLinkTokenIOS(tokenType: ExternalPurchaseCustomLinkTokenTypeIOS): Promise @DoNotStrip @Keep abstract fun showExternalPurchaseCustomLinkNoticeIOS(noticeType: ExternalPurchaseCustomLinkNoticeTypeIOS): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject RnIap]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridRnIapSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridRnIapSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridRnIapSpec" } }