Skip to content

Android SDK API Reference

Last updated: July 1, 2026

This reference covers the public CYBEXO Android SDK surface.

CybexoCMP.initialize(activity, settingsId, onComplete?)

  • call once during app startup
  • requires a current Activity
  • loads remote configuration and prepares consent state
  • optional completion callback runs after initialization completes

Example:

import com.cybexo.cmp.CybexoCMP
CybexoCMP.initialize(this, "YOUR_SETTINGS_ID")

CybexoCMP.forceShowBanner(activity)

  • opens consent UI/preferences for review or update
  • useful for privacy settings screens and QA validation

Example:

CybexoCMP.forceShowBanner(this)
  • 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 screen.
  • Reopen from a valid foreground Activity.
  • Keep SDK logs disabled in production unless troubleshooting.