Skip to content

iOS SDK API Reference

Last updated: July 1, 2026

This reference covers the public CybexoSDK iOS surface.

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")
}

CybexoCMP.shared.showBanner(force: Bool = false)

  • displays the consent UI
  • force: true reopens preferences even when consent already exists

Example:

CybexoCMP.shared.showBanner(force: true)
  • 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.

When IAB TCF is enabled for the property, the SDK manages TC string generation and storage for downstream ecosystem compatibility.

  • Initialize once; do not initialize repeatedly per view.
  • Present or reopen from a UI-safe context.
  • Keep SDK logs disabled in production unless troubleshooting.