Classes

The following classes are available globally.

  • The primary class for handling notification service extensions. SFMCNotificationService should be used as the base class for notification service extensions.

    Note

    Important: Do not implement any UNNotificationServiceExtension methods, including:
    • didReceive(_:withContentHandler:)
    • serviceExtensionTimeWillExpire()

    Implementing these methods may interfere with the expected behavior of SFMCNotificationService, potentially leading to unexpected issues.

    See more

    Declaration

    Objective-C

    @interface SFMCNotificationService : UNNotificationServiceExtension

    Swift

    class SFMCNotificationService : UNNotificationServiceExtension
  • The base class for notification content extensions.

    The notification content extension principal class should inherit from SFMCNotificationViewController.

    Note

    SFMCNotificationViewController fully manages UI rendering. Do not implement or override any UIViewController methods in the principal class of the content extension, as doing so may interfere with UI rendering.
    See more

    Declaration

    Objective-C

    @interface SFMCNotificationViewController : UIViewController

    Swift

    class SFMCNotificationViewController : UIViewController
  • The configuration class for content extensions.

    SFContentExtensionConfig provides settings to control logging behavior and request timeouts within the content extension.

    See more

    Declaration

    Swift

    @objc(SFMCContentExtensionConfig)
    public final class SFContentExtensionConfig : NSObject
  • The configuration class for the notification service which provides configuration options for notification service extension, including option for setting logging levels.

    See more

    Declaration

    Swift

    @objc(SFMCNotificationServiceConfig)
    public final class SFNotificationServiceConfig : NSObject