MarketingCloudSdkConfigBuilder

@objc(SFMarketingCloudSdkConfigBuilder)
public class MarketingCloudSdkConfigBuilder : NSObject

MarketingCloudSdkConfigBuilder class

  • Initialize MarketingCloudSdkConfigBuilder

    Declaration

    Swift

    @objc
    public init(appId: String)
  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant accessToken.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setAccessToken(_ accessToken: String) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific Url.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setMarketingCloudServerUrl(_ endpoint: URL) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific mid.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setMid(_ mid: String) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration flag that enables or disables location services

    Declaration

    Swift

    @discardableResult
    @objc
    public func setLocationEnabled(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration flag that enables or disables inbox services

    Declaration

    Swift

    @discardableResult
    @objc
    public func setInboxEnabled(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration flag that enables or disables Salesforce MarketingCloud Analytics services

    Declaration

    Swift

    @discardableResult
    @objc
    public func setAnalyticsEnabled(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration flag that enables or disables Salesforce Predictive Intelligence analytics services

    Declaration

    Swift

    @discardableResult
    @objc
    public func setPIAnalyticsEnabled(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration flag that enables or disables Salesforce Predictive Intelligence email override to take contactKey if no value is set

    Declaration

    Swift

    @discardableResult
    @objc
    public func setUseLegacyPIIdentifier(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration value which enables or disables application control over badging

    Declaration

    Swift

    @discardableResult
    @objc
    public func setApplicationControlsBadging(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration value which enables or disables application control over delaying SDK registration until a contact key is set

    Declaration

    Swift

    @discardableResult
    @objc
    public func setDelayRegistrationUntilContactKeyIsSet(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Sets the configuration value which enables or disables the screen entry tracking

    Declaration

    Swift

    @discardableResult
    @objc
    public func setEnableScreenEntryTracking(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Activates/Deactivates the automatic marking of inbox messages as read when clicking the inbox notification, provided that this configuration is enabled. The default setting for this API is true.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setMarkMessageReadOnInboxNotificationOpen(_ enabled: Bool) -> MarketingCloudSdkConfigBuilder
  • Creates a MarketingCloudSdkConfig containing the current builder configuration settings. This can be passed to the ConfigBuilder method(s)

    Declaration

    Swift

    @discardableResult
    @objc
    public func build() -> MarketingCloudSdkConfig