MobilePurchaseMasamuneAdapter constructor

const MobilePurchaseMasamuneAdapter({
  1. FunctionsAdapter? functionsAdapter,
  2. ModelAdapter? modelAdapter,
  3. required List<PurchaseProduct> products,
  4. bool automaticallyConsumeOnAndroid = true,
  5. bool iosSandboxTesting = false,
  6. required String? onRetrieveUserId(),
  7. Purchase? purchase,
  8. bool initializeOnBoot = false,
})

Initial setup for handling InAppPurchase on mobile MasamuneAdapter.

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

モバイルでのInAppPurchaseを取り扱うための初期設定を行うMasamuneAdapter

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

Implementation

const MobilePurchaseMasamuneAdapter({
  super.functionsAdapter,
  super.modelAdapter,
  required super.products,
  this.automaticallyConsumeOnAndroid = true,
  this.iosSandboxTesting = false,
  required super.onRetrieveUserId,
  super.purchase,
  super.initializeOnBoot = false,
});