Constants
The following constants are available globally.
-
MarketingCloudSDK error domain
Declaration
Objective-C
extern NSString *const _Nonnull MarketingCloudSDKErrorDomain -
MarketingCloudSDK finished setting up notification
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCFrameworkDidSetupNotificationSwift
let SFMCFrameworkDidSetupNotification: Int32 -
MarketingCloudSDK finished tearing down notification
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCFrameworkDidTeardownNotificationSwift
let SFMCFrameworkDidTeardownNotification: Int32 -
successfuly sent a registration to Salesforce - userinfo contains the HTTP response
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCFoundationRegistrationResponseSucceededNotificationSwift
let SFMCFoundationRegistrationResponseSucceededNotification: Int32 -
a UNNotification has been received - userInfo contains the UNNotificationRequest
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCFoundationUNNotificationReceivedNotificationSwift
let SFMCFoundationUNNotificationReceivedNotification: Int32 -
the Inbox was refreshed
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCInboxMessagesRefreshCompleteNotificationSwift
let SFMCInboxMessagesRefreshCompleteNotification: Int32 -
the Inbox has new messages
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCInboxMessagesNewInboxMessagesNotificationSwift
let SFMCInboxMessagesNewInboxMessagesNotification: Int32 -
the Inbox status has been updated
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCInboxMessagesUpdateStatusCompleteNotificationSwift
let SFMCInboxMessagesUpdateStatusCompleteNotification: Int32 -
the Inbox handled a notification - userInfo contains the NSNotification userInfo
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCInboxMessagesNotificationHandledNotificationSwift
let SFMCInboxMessagesNotificationHandledNotification: Int32 -
an OpenDirect message was handled - userInfo contains the NSNotification userInfo
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCOpenDirectMessageNotificationHandledNotificationSwift
let SFMCOpenDirectMessageNotificationHandledNotification: Int32 -
a new location has been determined - userInfo contains the latitude and longitude
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCLocationDidFixLocationNotificationSwift
let SFMCLocationDidFixLocationNotification: Int32 -
an iOS location update has been received - userInfo contains the CLLocation
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCLocationDidReceiveLocationUpdateNotificationSwift
let SFMCLocationDidReceiveLocationUpdateNotification: Int32 -
successfuly received updated geo-fence messages from Salesforce
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCLocationGeofenceRefreshCompleteNotificationSwift
let SFMCLocationGeofenceRefreshCompleteNotification: Int32 -
entered a geo-fence region - userInfo contains region Id
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCDidEnterLocationRegionMessageNotificationSwift
let SFMCDidEnterLocationRegionMessageNotification: Int32 -
exited a geo-fence region - userInfo contains region Id
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCDidExitLocationRegionMessageNotificationSwift
let SFMCDidExitLocationRegionMessageNotification: Int32 -
a geo-fence or beacon message has been displayed - userInfo contains the MC messageId
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCDidDisplayLocationMessageNotificationSwift
let SFMCDidDisplayLocationMessageNotification: Int32 -
successfuly received updated beacon messages from Salesforce
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCBeaconRefreshCompleteNotificationSwift
let SFMCBeaconRefreshCompleteNotification: Int32 -
ranged a beacon - userInfo contains UUID, major, minor, and proximity
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCDidRangeBeaconLocationMessageNotificationSwift
let SFMCDidRangeBeaconLocationMessageNotification: Int32 -
started monitoring a geo-fence or beacon region - userInfo contains region Id
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCLocationDidStartMonitoringForRegionNotificationSwift
let SFMCLocationDidStartMonitoringForRegionNotification: Int32 -
SDK blocked a notification
Declaration
Objective-C
extern NSNotificationName _Nonnull const SFMCFrameworkDidBlockNotificationSwift
let SFMCFrameworkDidBlockNotification: Int32 -
key used in notification payload to determine an inbox message’s content
Declaration
Objective-C
extern NSString *const _Nonnull MarketingCloudSDKInboxMessageKeySwift
let MarketingCloudSDKInboxMessageKey: String -
These type constants are used by sfmc_handleURL:type: to indicate the MarketingCloud source of the URL
Declaration
Objective-C
extern NSString *const _Nonnull SFMCURLTypeCloudPageSwift
let SFMCURLTypeCloudPage: String -
These type constants are used by sfmc_handleURL:type: to indicate the MarketingCloud source of the URL
Declaration
Objective-C
extern NSString *const _Nonnull SFMCURLTypeOpenDirectSwift
let SFMCURLTypeOpenDirect: String -
These type constants are used by sfmc_handleURL:type: to indicate the MarketingCloud source of the URL
Declaration
Objective-C
extern NSString *const _Nonnull SFMCURLTypeActionSwift
let SFMCURLTypeAction: String
Constants Reference