set Email Notification Subscription Type
fun setEmailNotificationSubscriptionType(emailNotificationSubscriptionType: NotificationSubscriptionType): Boolean
Sets whether or not the user should be sent email campaigns. Setting it to unsubscribed opts the user out of an email campaign that you create through the Braze dashboard.
Parameters
email Notification Subscription Type
com.braze.enums.NotificationSubscriptionType enum representing the user's email notifications subscription type.