RuntimePurchaseMasamuneAdapter constructor

const RuntimePurchaseMasamuneAdapter({
  1. required List<PurchaseProduct> products,
  2. required String? onRetrieveUserId(),
  3. FunctionsAdapter? functionsAdapter,
  4. ModelAdapter? modelAdapter,
  5. Purchase? purchase,
  6. ConsumablePurchaseDelegate? consumablePurchaseDelegate,
  7. NonConsumablePurchaseDelegate? nonConsumablePurchaseDelegate,
  8. SubscriptionPurchaseDelegate? subscriptionPurchaseDelegate,
  9. bool initializeOnBoot = false,
})

Initialize MasamuneAdapter to handle InAppPurchase in the mockup.

Define all billable items to be used in the app in products.

モックアップでのInAppPurchaseを取り扱うための初期設定を行うMasamuneAdapter

productsにアプリ内で利用するすべての課金用のアイテムを定義してください。

Implementation

const RuntimePurchaseMasamuneAdapter({
  required super.products,
  required super.onRetrieveUserId,
  super.functionsAdapter,
  super.modelAdapter,
  super.purchase,
  super.consumablePurchaseDelegate,
  super.nonConsumablePurchaseDelegate,
  super.subscriptionPurchaseDelegate,
  super.initializeOnBoot = false,
});