## Introduction
Welcome to the documentation for OneTrust CMP XCFramework! This documentation will provide you with detailed information on how to integrate and use the OneTrust Consent Management Platform (CMP) XCFramework in your iOS projects.
## Overview
### What is OneTrust CMP?
OneTrust CMP is a comprehensive Consent Management Platform that helps organizations manage user consent and preferences for data processing activities, in compliance with global data protection regulations such as GDPR, CCPA, and others.
### What is XCFramework?
XCFramework is a framework format provided by Apple that allows developers to distribute binary frameworks that contain both device-specific binaries and simulator binaries, streamlining the integration process and improving overall performance.
## Features
- Easily integrate OneTrust CMP functionalities into your iOS applications
- Implement user consent management and preferences
- Ensure compliance with global data protection regulations
- Efficiently handle user consent across devices
- Customize CMP user interface to match your app’s branding
## Getting Started
### Prerequisites
- iOS development environment with Xcode installed
- OneTrust CMP XCFramework
- Access to OneTrust Consent Management Platform
### Installation
To integrate OneTrust CMP XCFramework into your iOS project, follow the steps below:
- Download the OneTrust CMP XCFramework package from the official website or via CocoaPods
- Unzip the downloaded package
- In your Xcode project, navigate to the Project Settings
- Under the “General” tab, scroll down to the “Frameworks, Libraries, and Embedded Content” section
- Click the (+) button to add a new framework
- Choose “Add Other…” and select the OneTrust CMP XCFramework file
- Make sure the framework is properly linked and embedded in your target
## Usage
To use OneTrust CMP in your iOS application, follow these steps:
- Import the OneTrust CMP module into your Swift source file
- Create an instance of OneTrustCMP
- Initialize the OneTrustCMP instance with your OneTrust CMP App ID
- Implement the necessary delegate methods for consent status and user preferences handling
- Register your custom user interface components
- Present and manage the OneTrust CMP user interface
## API Reference
For detailed information on the available classes, methods, and properties provided by the OneTrust CMP XCFramework, please refer to the official API Reference.
## Conclusion
Using the OneTrust CMP XCFramework, you can easily implement consent management and adhere to global data protection regulations in your iOS applications. With a comprehensive set of features and a user-friendly interface, OneTrust CMP simplifies the process of handling user consent and preferences, ensuring compliance and trust.