MobileAppMessagingConfigBuilder
@objc(SFMobileAppMessagingConfigBuilder)
public class MobileAppMessagingConfigBuilder : NSObject
MobileAppMessagingConfigBuilder class
-
Initialize MobileAppMessagingConfigBuilder with appId.
Declaration
Swift
@objc public init(appId: String)Parameters
appIdString
-
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
-
Sets the configuration flag that enables or disables Salesforce MarketingCloud Analytics services
Declaration
Swift
@discardableResult @objc public func setAnalyticsEnabled(_ enabled: Bool) -> MobileAppMessagingConfigBuilderParameters
setAnalyticsEnabledAllows 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) -> MobileAppMessagingConfigBuilderParameters
setTenantIdAllows 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) -> MobileAppMessagingConfigBuilderParameters
accessTokensetAccessToken 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) -> MobileAppMessagingConfigBuilderParameters
setMAMUrlAllows setting the value to use for the Salesforce Tenant Specific Url.
-
MobileAppMessagingConfigBuilder Class Reference