MarketingCloudSDKConfigBuilder
Objective-C
@interface MarketingCloudSDKConfigBuilder : NSObject
Swift
class MarketingCloudSDKConfigBuilder : NSObject
The MarketingCloudSDKConfigBuilder class
-
Creates a NSDictionary containing the current builder configuration settings. This can be passed to the MarketingCloudSDK sfmc_configureWithDictionary method(s)
Declaration
Objective-C
- (NSDictionary *_Nullable)sfmc_build;
Swift
func sfmc_build() -> [AnyHashable : Any]?
Return Value
NSDictionary containing the current builder configuration settings.
-
Sets the configuration value to use for the Salesforce MarketingCloud Application ID.
Declaration
Objective-C
- (nonnull instancetype)sfmc_setApplicationId: (nonnull NSString *)setApplicationId;
Swift
func sfmc_setApplicationId(_ setApplicationId: String) -> Self
Parameters
setApplicationId
Allows setting the value to use for the Salesforce MarketingCloud application ID.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration value to use for the Salesforce MarketingCloud Tenant accessToken.
Declaration
Objective-C
- (nonnull instancetype)sfmc_setAccessToken:(nonnull NSString *)setAccessToken;
Swift
func sfmc_setAccessToken(_ setAccessToken: String) -> Self
Parameters
setAccessToken
Allows setting the value to use for the Salesforce MarketingCloud accessToken.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration flag that enables or disables location services
Declaration
Objective-C
- (nonnull instancetype)sfmc_setLocationEnabled: (nonnull NSNumber *)setLocationEnabled;
Swift
func sfmc_setLocationEnabled(_ setLocationEnabled: NSNumber) -> Self
Parameters
setLocationEnabled
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration flag that enables or disables inbox services
Declaration
Objective-C
- (nonnull instancetype)sfmc_setInboxEnabled: (nonnull NSNumber *)setInboxEnabled;
Swift
func sfmc_setInboxEnabled(_ setInboxEnabled: NSNumber) -> Self
Parameters
setInboxEnabled
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration flag that enables or disables Salesforce Predictive Intelligence analytics services
Declaration
Objective-C
- (nonnull instancetype)sfmc_setPiAnalyticsEnabled: (nonnull NSNumber *)setPiAnalyticsEnabled;
Swift
func sfmc_setPiAnalyticsEnabled(_ setPiAnalyticsEnabled: NSNumber) -> Self
Parameters
setPiAnalyticsEnabled
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration flag that enables or disables Salesforce Predictive Intelligence email override to take contactKey if no value is set
Declaration
Objective-C
- (nonnull instancetype)sfmc_setUseLegacyPIIdentifier: (nonnull NSNumber *)etUseLegacyPIIdentifier;
Swift
func sfmc_setUseLegacyPIIdentifier(_ etUseLegacyPIIdentifier: NSNumber) -> Self
Parameters
etUseLegacyPIIdentifier
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration flag that enables or disables Salesforce MarketingCloud Analytics services
Declaration
Objective-C
- (nonnull instancetype)sfmc_setAnalyticsEnabled: (nonnull NSNumber *)setAnalyticsEnabled;
Swift
func sfmc_setAnalyticsEnabled(_ setAnalyticsEnabled: NSNumber) -> Self
Parameters
setAnalyticsEnabled
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific mid.
Declaration
Objective-C
- (nonnull instancetype)sfmc_setMid:(nonnull NSString *)setMid;
Swift
func sfmc_setMid(_ setMid: String) -> Self
Parameters
setMid
Allows setting the value to use for the Salesforce MarketingCloud Tenant Specific mid.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration value to use for the Salesforce MarketingCloud Tenant Specific Url.
Declaration
Objective-C
- (nonnull instancetype)sfmc_setMarketingCloudServerUrl: (nonnull NSString *)setMarketingCloudServerUrl;
Swift
func sfmc_setMarketingCloudServerUrl(_ setMarketingCloudServerUrl: String) -> Self
Parameters
setMarketingCloudServerUrl
Allows setting the value to use for the Salesforce Tenant Specific Url.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration value which enables or disables application control over badging
Declaration
Objective-C
- (nonnull instancetype)sfmc_setApplicationControlsBadging: (nonnull NSNumber *)setApplicationControlsBadging;
Swift
func sfmc_setApplicationControlsBadging(_ setApplicationControlsBadging: NSNumber) -> Self
Parameters
setApplicationControlsBadging
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value
-
Sets the configuration value which enables or disables application control over delaying SDK registration until a contact key is set
Declaration
Objective-C
- (nonnull instancetype)sfmc_setDelayRegistrationUntilContactKeyIsSet: (nonnull NSNumber *)delayRegistrationUntilContactKeyIsSet;
Swift
func sfmc_setDelayRegistration(untilContactKeyIsSet delayRegistrationUntilContactKeyIsSet: NSNumber) -> Self
Parameters
delayRegistrationUntilContactKeyIsSet
Allows setting the state to YES or NO.
Return Value
returns the MarketingCloudSDKConfigBuilder instancetype value