open_cdp_flutter_sdk library

Classes

CDPInAppManager
Manages fetching, arbitration, display dispatch and tracking for in-app messages. Designed to be initialized once per SDK instance.
CDPPushAction
A push action button delivered in the FCM data.actions JSON string.
CustomerIoConfig
Customer.io configuration
InAppArbitrationState
Public-shape mirror of the private _DeliveryState used so pure arbitration filtering can be tested without standing up the full manager. Marked @visibleForTesting because the production code never constructs these directly — they're built from _deliveryState inside _arbitrate.
InAppConfig
InAppCta
A call-to-action button on an in-app message.
InAppManagerConfig
Configuration for the in-app delivery manager.
InAppMessage
A message returned by the in-app sync endpoint.
InAppPersistence
Persistence rules for an in-app message (max impressions, intervals, etc.).
OpenCDPConfig
Main configuration class for Open CDP SDK
OpenCDPPushPayload
Helpers for push notification v2 payloads (custom_data, actions).
OpenCDPSDK
Main SDK class for Open CDP
PushConfig
PushConfigAndroid

Enums

CioLogLevel
Enum to define the log levels. Logs can be viewed in Xcode or Android studio.
InAppCtaAction
Action performed when a CTA is tapped.
InAppDismissReason
Reason a message was dismissed.
InAppRenderType
Render type for an in-app message (matches backend render_type).
MetricEvent
Enum representing different types of metric events for push notifications
OpenCDPLogLevel
Log level for SDK debugging
PushClickBehaviorAndroid
Enum to specify the type of metric for tracking Enum to specify the click behavior of push notification for Android
Region
ScreenView
Screen view tracking configuration

Typedefs

InAppMessageListener = void Function(InAppMessage message)
Listener invoked when a new in-app message is ready to be displayed by the host app. The host is responsible for actually rendering it (modal, banner, inline, inbox card, etc.) — the SDK only schedules and tracks it.

Exceptions / Errors

CDPException
Custom exception for CDP API errors.
CDPValidationException
Custom exception class for validation errors in the CDP SDK.