Let us know so we can improve!
SFNotificationServiceConfig
Class
The configuration class for the notification service which provides configuration options for notification service extension, including option for setting logging levels.
Declaration
1@objc(SFMCNotificationServiceConfig)
2public final class SFNotificationServiceConfig : NSObject
3
4@objc
5public let logLevel: LogLevel
6
7@objc
8public let shouldShowCarouselThumbnail: Bool
9
10@objc
11public let mediaProviders: Int
12
13@objc
14public init(logLevel: LogLevel = .none,
15 shouldShowCarouselThumbnail: Bool = true,
16 mediaProviders: Int = MediaProviders.sfmc.rawValue)
17
18@objc
19public convenience init(logLevel: LogLevel = .none, shouldShowCarouselThumbnail: Bool = true)Cases
logLevel
The log level used for notification service extension. The default is .none .
1@objc
2public let logLevel: LogLevelshouldShowCarouselThumbnail
Indicates whether a thumbnail should be displayed for carousel notifications. The default is true .
1@objc
2public let shouldShowCarouselThumbnail: BoolmediaProviders
Bitmask of enabled media providers. Combine SFMCMediaProviders raw values with a bitwise OR (e.g. SFMCMediaProvidersSfmc ). Defaults to SFMCMediaProviders.sfmc . Use SFMCMediaProviders.none (i.e. 0 ) to opt out of SDK-managed media handling.
1@objc
2public let mediaProviders: Intinit(logLevel:shouldShowCarouselThumbnail:mediaProviders:)
Initializes the notification service configuration with specified options.
1@objc
2public init(logLevel: LogLevel = .none,
3 shouldShowCarouselThumbnail: Bool = true,
4 mediaProviders: Int = MediaProviders.sfmc.rawValue)init(logLevel:shouldShowCarouselThumbnail:)
Convenience for callers who only need to set log level / thumbnail flag. Preserves the ObjC selector initWithLogLevel:shouldShowCarouselThumbnail: and inherits the primary init’s default of SFMCMediaProviders.sfmc .
1@objc
2public convenience init(logLevel: LogLevel = .none, shouldShowCarouselThumbnail: Bool = true)Let us know so we can improve!