ContactManagementItem
struct ContactManagementItem : Decodable, Equatable, PreferenceCenterConfigItem, Sendable
extension PreferenceCenterConfig.ContactManagementItem: Encodable
Contact management item - base container object for contact management in the preference center
-
The contact management item’s type.
Declaration
Swift
public let type: PreferenceCenterConfigItemType -
The contact management item’s identifier.
Declaration
Swift
public var id: String -
The contact management item’s channel platform - for example: email or sms.
Declaration
Swift
public var platform: Platform -
The remove prompt
Declaration
Swift
public var removeChannel: RemoveChannel? -
The empty message label that’s visible when no channels of this type have been added
Declaration
Swift
public var emptyMessage: String? -
The section’s display conditions.
Declaration
Swift
public var conditions: [Condition]? -
Declaration
Swift
public init(from decoder: any Decoder) throws -
Platform
Declaration
Swift
public enum Platform : Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.Platform: Encodable -
Pending label that appears after channel list item is added. Resend button appears after interval.
See moreDeclaration
Swift
public struct PendingLabel : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.PendingLabel: Encodable -
Email registration options
See moreDeclaration
Swift
public struct Email : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.Email: Encodable -
SMS registration options
See moreDeclaration
Swift
public struct SMS : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.SMS: Encodable -
Reusable container for holding a title and optional description.
See moreDeclaration
Swift
public struct CommonDisplay : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.CommonDisplay: Encodable -
The label message that appears when a channel listing is empty.
See moreDeclaration
Swift
public struct EmptyMessage : Decodable, Equatable -
The container for the add prompt button and resulting add prompt.
See moreDeclaration
Swift
public struct AddChannel : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.AddChannel: Encodable -
The container for the remove channel button and resulting remove prompt for adding a channel to a channel list.
See moreDeclaration
Swift
public struct RemoveChannel : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.RemoveChannel: Encodable -
A more dynamic version of common display that includes a footer and error message.
See moreDeclaration
Swift
public struct PromptDisplay : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.PromptDisplay: Encodable -
Alert button info.
See moreDeclaration
Swift
public struct LabeledButton : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.LabeledButton: Encodable -
Alert display info
See moreDeclaration
Swift
public struct ActionableMessage : Decodable, Equatable, Sendableextension PreferenceCenterConfig.ContactManagementItem.ActionableMessage: Encodable -
Error message container for showing error messages on the add channel prompt
Declaration
Swift
public struct ErrorMessages : Codable, Equatable, Sendable -
The info used to populate the add channel prompt sender input for SMS.
See moreDeclaration
Swift
public struct SMSSenderInfo : Decodable, Identifiable, Equatable, Hashable, Sendableextension PreferenceCenterConfig.ContactManagementItem.SMSSenderInfo: Encodable
-
Declaration
Swift
public func encode(to encoder: any Encoder) throws
View on GitHub