PreferenceCenterConfig
public struct PreferenceCenterConfig : Decodable, Sendable, Equatable
extension PreferenceCenterConfig: Encodable
Preference center config.
-
The config’s identifier.
Declaration
Swift
public var identifier: String -
The config’s sections.
Declaration
Swift
public var sections: [Section] -
The config’s display info.
Declaration
Swift
public var display: CommonDisplay? -
The config’s options.
Declaration
Swift
public var options: Options? -
Config options.
See moreDeclaration
Swift
public struct Options : Decodable, Sendable, Equatableextension PreferenceCenterConfig.Options: Encodable -
Common display info
See moreDeclaration
Swift
public struct CommonDisplay : Decodable, Sendable, Equatableextension PreferenceCenterConfig.CommonDisplay: Encodable -
Typed conditions.
See moreDeclaration
Swift
public enum Condition : Decodable, Equatable, Sendableextension PreferenceCenterConfig.Condition: Encodable -
Common section.
See moreDeclaration
Swift
public struct CommonSection : Decodable, PreferenceCenterConfigSectionextension PreferenceCenterConfig.CommonSection: Encodable -
Labeled section break info.
See moreDeclaration
Swift
public struct LabeledSectionBreak : Decodable, PreferenceCenterConfigSectionextension PreferenceCenterConfig.LabeledSectionBreak: Encodable -
Contact Management section.
See moreDeclaration
Swift
public struct ContactManagementSection : Decodable, PreferenceCenterConfigSection -
Preference config section.
See moreDeclaration
Swift
public enum Section : Decodable, Equatable, Sendableextension PreferenceCenterConfig.Section: Encodable -
Channel subscription item info.
See moreDeclaration
Swift
public struct ChannelSubscription : Decodable, Equatable, PreferenceCenterConfigItemextension PreferenceCenterConfig.ChannelSubscription: Encodable -
Group contact subscription item info.
See moreDeclaration
Swift
public struct ContactSubscriptionGroup : Decodable, Equatable, PreferenceCenterConfigItemextension PreferenceCenterConfig.ContactSubscriptionGroup: Encodable -
Contact subscription item info.
See moreDeclaration
Swift
public struct ContactSubscription : Decodable, PreferenceCenterConfigItem, Equatableextension PreferenceCenterConfig.ContactSubscription: Encodable -
Alert item info.
See moreDeclaration
Swift
public struct Alert : Decodable, PreferenceCenterConfigItem, Equatableextension PreferenceCenterConfig.Alert: Encodable -
Contact management item Config item.
See moreDeclaration
Swift
public enum Item : Decodable, Equatable, Sendableextension PreferenceCenterConfig.Item: Encodable -
Contact management item - base container object for contact management in the preference center
See moreDeclaration
Swift
struct ContactManagementItem : Decodable, Equatable, PreferenceCenterConfigItem, Sendableextension PreferenceCenterConfig.ContactManagementItem: Encodable
-
Declaration
Swift
public func encode(to encoder: any Encoder) throws
View on GitHub