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 anyUNNotificationServiceExtension
methods, including:didReceive(_:withContentHandler:)
serviceExtensionTimeWillExpire()
Implementing these methods may interfere with the expected behavior of
See moreSFMCNotificationService
, potentially leading to unexpected issues.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 anyUIViewController
methods in the principal class of the content extension, as doing so may interfere with UI rendering.Declaration
Objective-C
@interface SFMCNotificationViewController : UIViewController
Swift
class SFMCNotificationViewController : UIViewController
-
The configuration class for content extensions.
See moreSFContentExtensionConfig
provides settings to control logging behavior and request timeouts within the content extension.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 moreDeclaration
Swift
@objc(SFMCNotificationServiceConfig) public final class SFNotificationServiceConfig : NSObject