Edit in GitHubLog an issue

ContentCardEventObserver

Messaging implementation of AepUIEventObserver for handling content card events.

Parameters

The primary constructor takes two optional parameters.

ParameterTypeDescription
callback
Optional listener for display, dismiss, and interact callbacks.
provider
Optional provider for the same surface as your card list. When non-null, the Messaging SDK updates the provider-backed flow after callback handling so collectors of getContentCardUIFlow see changes such as dismiss without calling refreshContent. Use the same instance you pass to getContentCardUIFlow().

Behavior

For each event, the observer runs Messaging’s template-specific handling (including your callback when provided), then notifies provider when it is non-null. If you only need callbacks and your UI does not depend on the provider’s flow, you may omit provider. If you collect cards from ContentCardUIProvider, pass that provider so the list stays in sync when card state changes.

Methods

onEvent

Called when an event related to a Content Card UI template occurs.

Syntax

Copied to your clipboard
override fun onEvent(event: UIEvent<*, *>)
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.