ConsentManagementPlatform
public final class ConsentManagementPlatform
A class that provides a management interface for user consent forms within the Consent Management Platform.
-
Enables or disables the presentation of the consent form.
Declaration
Swift
public func setConsentFormPresentation(enabled: Bool)Parameters
enabledA Boolean indicating whether consent form presentation should be enabled.
-
Presents the consent form if it is required.
Declaration
Swift
public func presentConsentFormIfRequired(completion: @escaping (ConsentManagementPresentationResult) -> Void)Parameters
completionA closure that is called with the result of the presentation attempt.
-
Resets the consent status.
Note: This method is intended for testing purposes only. It allows for the consent status to be reset, which can be useful for simulating consent acquisition scenarios.
Declaration
Swift
public func resetConsentStatus() -
Sets debugging parameters to configure the consent management behavior for development and testing.
Note: This method is intended for testing purposes only. It is used to simulate different geographical and device configurations for debugging.
Declaration
Swift
public func setDebugParameters(_ parameters: ConsentManagementPlatformDebugParameters)Parameters
parametersAn instance of
ConsentManagementPlatformDebugParameterscontaining debug settings such as test device identifiers and geography.