Options
All
  • Public
  • Public/Protected
  • All
Menu

cordova-plugin-purchases - v6.1.2

Index

Type aliases

LogHandler

LogHandler: (logLevel: LOG_LEVEL, message: string) => void

Type declaration

    • (logLevel: LOG_LEVEL, message: string): void
    • Parameters

      Returns void

PurchasesAreCompletedBy

PurchasesAreCompletedBy: REVENUECAT | PurchasesAreCompletedByMyApp

Allows you to specify whether you want RevenueCat to complete your app's purchases or if your app will do so.

You can configure RevenueCat to complete your purchases like so:

Purchases.configure({
 apiKey: "123",
 purchasesAreCompletedBy: PURCHASES_ARE_COMPLETED_BY.REVENUECAT,
});

You can specify that purchase are completed by your app like so:

Purchases.configure({
 apiKey: "123",
 purchasesAreCompletedBy: {
   type: PURCHASES_ARE_COMPLETED_BY.MY_APP,
   storeKitVersion: STOREKIT_VERSION.STOREKIT_1
 },
});

PurchasesAreCompletedByMyApp

PurchasesAreCompletedByMyApp: { storeKitVersion: STOREKIT_VERSION; type: MY_APP }

Configuration option that specifies that your app will complete purchases.

Type declaration

  • storeKitVersion: STOREKIT_VERSION

    The version of StoreKit that your app is using to make purchases. This value is ignored on Android, so if your app is Android-only, you may provide any value.

  • type: MY_APP

ShouldPurchasePromoProductListener

ShouldPurchasePromoProductListener: (deferredPurchase: () => void) => void

Type declaration

    • (deferredPurchase: () => void): void
    • Parameters

      • deferredPurchase: () => void
          • (): void
          • Returns void

      Returns void

Generated using TypeDoc