ConsentMappingCallback
public class ConsentMappingCallback : AbstractCallback, ObservableObject, @unchecked Sendable
A callback that collects consent mapping information from a user.
-
The name of the consent mapping
Declaration
Swift
private(set) public var name: String { get } -
The display name of the consent mapping
Declaration
Swift
private(set) public var displayName: String { get } -
The icon associated with the consent mapping
Declaration
Swift
private(set) public var icon: String { get } -
The access level required for the consent mapping
Declaration
Swift
private(set) public var accessLevel: String { get } -
Whether the consent mapping is required
Declaration
Swift
private(set) public var isRequired: Bool { get } -
The list of fields associated with the consent mapping
Declaration
Swift
private(set) public var fields: [String] { get } -
The message to be displayed to the user
Declaration
Swift
private(set) public var message: String { get } -
Whether the user accepts the consent mapping
Declaration
Swift
public var accepted: Bool -
Initializes a new instance of
ConsentMappingCallbackwith the provided JSON input.Declaration
Swift
public override func initValue(name: String, value: Any) -
Returns the payload with the user’s consent acceptance value.
Declaration
Swift
public override func payload() -> [String : Any]
View on GitHub