FunnelPresentHandlers constructor

const FunnelPresentHandlers({
  1. Future<bool> onPurchase(
    1. String packageId
    )?,
  2. Future<bool> onWinBackPurchase(
    1. String packageId,
    2. String winBackOfferId
    )?,
  3. Future<bool> onRestore()?,
  4. void onPurchaseError(
    1. RovenueException error
    )?,
  5. void onUrl(
    1. String url
    )?,
  6. void onCustomAction(
    1. String actionId,
    2. String paramsJson
    )?,
  7. void onPhotoSelected(
    1. String questionKey,
    2. FunnelPhotoRef photo
    )?,
  8. FunnelCheckHandler? onCheck,
})

Creates the hooks.

Implementation

const FunnelPresentHandlers({
  this.onPurchase,
  this.onWinBackPurchase,
  this.onRestore,
  this.onPurchaseError,
  this.onUrl,
  this.onCustomAction,
  this.onPhotoSelected,
  this.onCheck,
});