setShouldDisplayBlock

Sets a block that determines whether the paywall should be displayed. The paywall will be displayed only if this returns true.

This is mutually exclusive with setRequiredEntitlementIdentifier. Setting this will clear any previously set requiredEntitlementIdentifier.