SFNotificationServiceConfig
@objc(SFMCNotificationServiceConfig)
public final class SFNotificationServiceConfig : NSObject
The configuration class for the notification service which provides configuration options for notification service extension, including option for setting logging levels.
-
The log level used for notification service extension. The default is
.none
.Declaration
Swift
@objc public let logLevel: LogLevel
-
Indicates whether a thumbnail should be displayed for carousel notifications. The default is
true
.Declaration
Swift
@objc public let shouldShowCarouselThumbnail: Bool
-
Initializes the notification service configuration with a specified log level.
Declaration
Swift
@objc public init(logLevel: LogLevel = .none, shouldShowCarouselThumbnail: Bool = true)
Parameters
logLevel
The desired logging level. Defaults to
.none
.shouldShowCarouselThumbnail
Showing Carousel Thumbnail. Defaults to
true
.