CMPProviderService

public class CMPProviderService

This class is the entry point for interacting with the CMP provider.

  • Returns true if the CMP has a form available to show to the user, false otherwise. Requires the CMP to have updated the user requirements in this session, this can either be done by enabling CMP Automation on XMediator or by requesting it to the CMP directly via its SDK API.

    Declaration

    Swift

    public func isPrivacyFormAvailable() -> Bool
  • Presents the CMP privacy form if available.

    Declaration

    Swift

    public func presentPrivacyForm(fromViewController viewController: UIViewController, onComplete: @escaping (LocalizedError?) -> Void)
  • Resets the user’s consent (debug only).

    Declaration

    Swift

    public func reset()