setCampaignsSuppressed method
Suppresses overlay campaigns while the host app shows UI of its own — typically its own modal — that a campaign must not cover. See Digia.setCampaignsSuppressed.
The last call wins. Setting the current value is a silent no-op; only a change is logged. May be called before Digia.initialize — the value is honoured once the SDK is ready — and survives setUserId/clearUserId.
Implementation
void setCampaignsSuppressed(bool suppressed) {
if (suppressed == _campaignsSuppressed) return;
_campaignsSuppressed = suppressed;
_log.d(
suppressed
? 'Campaign overlays suppressed by the host app'
: 'Campaign overlays unsuppressed by the host app',
);
}