iOS SDK API Reference
Last updated: July 1, 2026
This reference covers the public CybexoSDK iOS surface.
1. Initialization
Section titled “1. Initialization”CybexoCMP.shared.initialize(settingsId:completion:)
- call once during app startup
- loads configuration and prepares consent state
- completion callback indicates SDK readiness
Example:
import CybexoSDK
CybexoCMP.shared.initialize(settingsId: "YOUR_SETTINGS_ID") { print("CYBEXO CMP ready")}2. Banner Controls
Section titled “2. Banner Controls”CybexoCMP.shared.showBanner(force: Bool = false)
- displays the consent UI
force: truereopens preferences even when consent already exists
Example:
CybexoCMP.shared.showBanner(force: true)3. Public Surface Policy
Section titled “3. Public Surface Policy”- User consent decisions should be made through the CYBEXO CMP UI.
- Keep consent action internals behind the SDK runtime.
- Provide a visible “Review Consent” entry in app privacy/settings.
4. TCF Output Notes
Section titled “4. TCF Output Notes”When IAB TCF is enabled for the property, the SDK manages TC string generation and storage for downstream ecosystem compatibility.
5. Lifecycle Notes
Section titled “5. Lifecycle Notes”- Initialize once; do not initialize repeatedly per view.
- Present or reopen from a UI-safe context.
- Keep SDK logs disabled in production unless troubleshooting.