Prevent a Paywall from Being Raised
If you have screens in your app where you never want to make sure your users are not interrupted by a paywall, add the following callback to your code:
NamiPaywallManager.registerApplicationAutoRaisePaywallBlocker { () -> Bool in
if inKeySection {
return false
} else {
return true
}
}
[NamiPaywallManager registerApplicationAutoRaisePaywallBlocker:^BOOL{
if (inKeySection) {
return true;
} else {
return false;
}
}];
NamiPaywallManager.registerApplicationAutoRaisePaywallBlocker {
if (allowAutoRaisingPaywall) {
true
} else {
false
}
}
NamiPaywallManager.registerApplicationAutoRaisePaywallBlocker(() -> {
if (allowAutoRaisingPaywall) {
return true;
} else {
return false;
}
});
NamiPaywallManager.blockPaywallAutoRaise(bool blockRaise);
When returning true
paywalls behave as normal. If you return false
all paywalls Nami controls will be prevented from displaying.
- Flutter
Setting totrue
would prevent from displaying all the paywalls that Nami controls, and settingfalse
would set patwalls to behave normally.
Updated over 3 years ago