MobileAppMessagingConfigBuilder

@objc(SFMobileAppMessagingConfigBuilder)
public class MobileAppMessagingConfigBuilder : NSObject

MobileAppMessagingConfigBuilder class

Initialization

  • Initialize MobileAppMessagingConfigBuilder with appId.

    Declaration

    Swift

    @objc
    public init(appId: String)

    Parameters

    appId

    String

Build Method

  • Creates a MobileAppMessaging config containing the current builder configuration settings. This can be passed to the ConfigBuilder method(s)

    Declaration

    Swift

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

Configuration Methods

  • Sets the configuration flag that enables or disables Salesforce MarketingCloud Analytics services

    Declaration

    Swift

    @discardableResult
    @objc
    public func setAnalyticsEnabled(_ enabled: Bool) -> MobileAppMessagingConfigBuilder

    Parameters

    setAnalyticsEnabled

    Allows setting the state to YES or NO.

  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific mid.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setTenantId(_ tenantID: String) -> MobileAppMessagingConfigBuilder

    Parameters

    setTenantId

    Allows setting the value to use for the Salesforce MarketingCloud Tenant Specific mid.

  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant accessToken.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setAccessToken(_ accessToken: String) -> MobileAppMessagingConfigBuilder

    Parameters

    accessToken

    setAccessToken Allows setting the value to use for the Salesforce MarketingCloud accessToken.

  • Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific Url.

    Declaration

    Swift

    @discardableResult
    @objc
    public func setMAMUrl(_ baseURL: URL) -> MobileAppMessagingConfigBuilder

    Parameters

    setMAMUrl

    Allows setting the value to use for the Salesforce Tenant Specific Url.