logShowPaywall method

Future<void> logShowPaywall({
  1. required AdaptyPaywall paywall,
})

Call this method to notify Adapty SDK, that particular paywall was shown to user.

Adapty helps you to measure the performance of the paywalls. We automatically collect all the metrics related to purchases except for paywall views. This is because only you know when the paywall was shown to a customer. Whenever you show a paywall to your user, call .logShowPaywall(paywall) to log the event, and it will be accumulated in the paywall metrics. Read more on the Adapty Documentation

Parameters:

Implementation

Future<void> logShowPaywall({required AdaptyPaywall paywall}) async {
  return _invokeMethodHandlingErrors<void>(Method.logShowPaywall, {
    Argument.paywall: json.encode(paywall.jsonValue),
  });
}