ContentCardUIEventListener

Interface to handle different callback events which can occur for a displayed content card.

Interface Definition

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

interface ContentCardUIEventListener {
    fun onDisplay(aepUI: AepUI<*, *>,)
    fun onDismiss(aepUI: AepUI<*, *>,)
    fun onInteract(aepUI: AepUI<*, *>, interactionId: String?, actionUrl: String?): Boolean
}

Methods

onDisplay

Callback to invoke when a content card is displayed.

Parameters

Syntax

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

fun onDisplay(aepUI: AepUI<*, *>,)

onDismiss

Callback to invoke when a content card is dismissed.

Parameters

Syntax

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

fun onDismiss(aepUI: AepUI<*, *>,)

onInteract

Callback to invoke when a content card is interacted with.

Parameters

Returns

A boolean value indicating whether the interaction event was handled. Returns true if the client app has handled the actionUrl associated with the interaction. Returns false if the SDK should handle the actionUrl.

Syntax

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

fun onInteract(aepUI: AepUI<*, *>, interactionId: String?, actionUrl: String?): Boolean