PushConfigBuilder

@objc
public class PushConfigBuilder : NSObject

PushConfigBuilder class

  • Initialize PushConfigBuilder

    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) -> PushConfigBuilder
  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific Url.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @discardableResult
    @objc
    public func setPIAnalyticsEnabled(_ enabled: Bool) -> PushConfigBuilder
  • 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) -> PushConfigBuilder
  • Sets the configuration value which enables or disables application control over badging

    Declaration

    Swift

    @discardableResult
    @objc
    public func setApplicationControlsBadging(_ enabled: Bool) -> PushConfigBuilder
  • 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) -> PushConfigBuilder
  • Sets the configuration value which enables or disables the screen entry tracking

    Declaration

    Swift

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

    Declaration

    Swift

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