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 SFMCFrameworkDidSetupNotification

    Swift

    let SFMCFrameworkDidSetupNotification: Int32
  • MarketingCloudSDK finished tearing down notification

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCFrameworkDidTeardownNotification

    Swift

    let SFMCFrameworkDidTeardownNotification: Int32
  • successfuly sent a registration to Salesforce - userinfo contains the HTTP response

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCFoundationRegistrationResponseSucceededNotification

    Swift

    let SFMCFoundationRegistrationResponseSucceededNotification: Int32
  • a UNNotification has been received - userInfo contains the UNNotificationRequest

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCFoundationUNNotificationReceivedNotification

    Swift

    let SFMCFoundationUNNotificationReceivedNotification: Int32
  • the Inbox was refreshed

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCInboxMessagesRefreshCompleteNotification

    Swift

    let SFMCInboxMessagesRefreshCompleteNotification: Int32
  • the Inbox has new messages

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCInboxMessagesNewInboxMessagesNotification

    Swift

    let SFMCInboxMessagesNewInboxMessagesNotification: Int32
  • the Inbox status has been updated

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCInboxMessagesUpdateStatusCompleteNotification

    Swift

    let SFMCInboxMessagesUpdateStatusCompleteNotification: Int32
  • the Inbox handled a notification - userInfo contains the NSNotification userInfo

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCInboxMessagesNotificationHandledNotification

    Swift

    let SFMCInboxMessagesNotificationHandledNotification: Int32
  • an OpenDirect message was handled - userInfo contains the NSNotification userInfo

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCOpenDirectMessageNotificationHandledNotification

    Swift

    let SFMCOpenDirectMessageNotificationHandledNotification: Int32
  • a new location has been determined - userInfo contains the latitude and longitude

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCLocationDidFixLocationNotification

    Swift

    let SFMCLocationDidFixLocationNotification: Int32
  • an iOS location update has been received - userInfo contains the CLLocation

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCLocationDidReceiveLocationUpdateNotification

    Swift

    let SFMCLocationDidReceiveLocationUpdateNotification: Int32
  • successfuly received updated geo-fence messages from Salesforce

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCLocationGeofenceRefreshCompleteNotification

    Swift

    let SFMCLocationGeofenceRefreshCompleteNotification: Int32
  • entered a geo-fence region - userInfo contains region Id

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCDidEnterLocationRegionMessageNotification

    Swift

    let SFMCDidEnterLocationRegionMessageNotification: Int32
  • exited a geo-fence region - userInfo contains region Id

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCDidExitLocationRegionMessageNotification

    Swift

    let SFMCDidExitLocationRegionMessageNotification: Int32
  • a geo-fence or beacon message has been displayed - userInfo contains the MC messageId

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCDidDisplayLocationMessageNotification

    Swift

    let SFMCDidDisplayLocationMessageNotification: Int32
  • successfuly received updated beacon messages from Salesforce

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCBeaconRefreshCompleteNotification

    Swift

    let SFMCBeaconRefreshCompleteNotification: Int32
  • ranged a beacon - userInfo contains UUID, major, minor, and proximity

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCDidRangeBeaconLocationMessageNotification

    Swift

    let SFMCDidRangeBeaconLocationMessageNotification: Int32
  • started monitoring a geo-fence or beacon region - userInfo contains region Id

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCLocationDidStartMonitoringForRegionNotification

    Swift

    let SFMCLocationDidStartMonitoringForRegionNotification: Int32
  • SDK blocked a notification

    Declaration

    Objective-C

    extern NSNotificationName _Nonnull const SFMCFrameworkDidBlockNotification

    Swift

    let SFMCFrameworkDidBlockNotification: Int32
  • key used in notification payload to determine an inbox message’s content

    Declaration

    Objective-C

    extern NSString *const _Nonnull MarketingCloudSDKInboxMessageKey

    Swift

    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 SFMCURLTypeCloudPage

    Swift

    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 SFMCURLTypeOpenDirect

    Swift

    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 SFMCURLTypeAction

    Swift

    let SFMCURLTypeAction: String