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

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @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

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

    Declaration

    Swift

    @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

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

    Declaration

    Swift

    @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

    @objc
    public func build() -> PushConfig