Manually show the paywall in your app.

This call will display the User-Initiated paywall defined by your current live campaign.

NamiPaywallManager.raisePaywall(fromVC: nil)
[[NamiPaywallManager shared] raisePaywallFromVC:nil];
NamiPaywallManager.raisePaywall(activity: Activity)
NamiPaywallManager.raisePaywall(Activity activity);
NativeModules.NamiPaywallManagerBridge.raisePaywall()
NamiPaywallManager.raisePaywall();
void NamiPaywallManager.RaisePaywall([NullAllowed] UIViewController fromVC);

📘

React Native

The React Native bridge cannot pass the view controller or activity to the paywall, so the fromVC or activity parameter is not part of the Javascript call. All paywalls will raise from the root screen.

Arguments Apple

  • fromVC: ViewController that will raise the paywall. If nil the paywall will raise from the app's root view controller.

Arguments Android

  • activity - The activity from which this method is called from.

📘

Must have a User Initiated Paywall Set Up

This call will raise the User Initiated Paywall defined in your campaign. If there is no User Initiated Paywall set in your campaign, then nothing will happen in your app.

Raise a specific paywall

Raise a specific paywall by the Developer Paywall ID set in the Control Center.

📘

This method was added in:

  • Apple SDK v2.5.0
  • Android SDK v1.0.0
  • React Native v1.0.0
NamiPaywallManager.raisePaywall(developerPaywallID: String, fromVC: UIViewController)
[NamiPaywallManager raisePaywallWithDeveloperPaywallID: (NSString *) fromVC:(UIViewController * _Nullable)];
NamiPaywallManager.raisePaywall(developerPaywallId: String, activity: Activity)
NamiPaywallManager.raisePaywall(String developerPaywallId, Activity activity);
NativeModules.NamiPaywallManagerBridge.raisePaywallByDeveloperPaywallId(String developerPaywallID);
NamiPaywallManager.raisePaywall(developerPaywallId: "developerPaywallId");
NamiPaywallManager.RaisePaywallByDeveloperPaywallID(string developerPaywallID, [NullAllowed] UIViewController fromVC)

Arguments

  • developerPaywallID - the Developer Paywall ID defined in the Nami Control Center

Arguments Apple

  • fromVC: ViewController that will raise the paywall. If nil the paywall will raise from the app's root view controller.

Arguments Android

  • activity - The activity from which this method is called from.

Method does nothing if the developer Paywall ID is not found.