set Subscription Status
Sets the entitlement status and updates the corresponding entitlement collections.
If you're handling subscription-related logic yourself, you must set this property whenever the subscription status of a user changes.
However, if you're letting Superwall handle subscription-related logic, its value will be synced with the user's purchases on device.
Paywalls will not show until the subscription status has been established. On first install, it's value will default to SubscriptionStatus.Unknown. Afterwards, it'll default to its cached value.
You can observe subscriptionStatus to get notified whenever the user's subscription status changes.
Otherwise, you can check the delegate function SuperwallDelegate.subscriptionStatusDidChange to receive a callback with the new value every time it changes.
To learn more, see Purchases and Subscription Status.
Parameters
The entitlement status of the user.
Simplified version of Superwall.setSubscriptionStatus that allows you to set the entitlements by passing in an array of strings. An empty list is treated as SubscriptionStatus.Inactive. Example: setSubscriptionStatus("default", "pro") equals SubscriptionStatus.Active(setOf(Entitlement("default"), Entitlement("pro"))) setSubscriptionStatus() equals SubscriptionStatus.Inactive
Parameters
A list of entitlements.