Braze JavaScript SDK
    Preparing search index...

    Function setUserEmailNotificationSubscriptionType

    • Sets whether the user should be sent email campaigns.

      Parameters

      • notificationSubscriptionType: NotificationSubscriptionType

        Notification setting (explicitly opted-in, subscribed, or unsubscribed). Use the NotificationSubscriptionTypes enum when setting this value.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.