Email subscription
// This requires to have a custom user ID registered by calling the `identify` method beforehand.
BatchProfile.instance.newEditor()
.setEmailAddress("john.doe@batch.com") // Null to erase. Addresses must be valid.
.setEmailMarketingSubscription(BatchEmailSubscriptionState.subscribed) // or BatchEmailSubscriptionState.unsubscribed
.save()Last updated

