AepInboxContentProvider

Responsible for retrieving and refreshing data as required by the inbox UI.

Classes implementing this interface will define a strategy to provide content for rendering the inbox UI.

Interface Definition

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

Kotlin

interface AepInboxContentProvider {
    fun getInboxUI(): Flow<InboxUIState>
    suspend fun refresh()
}

Methods

getInboxUI

Retrieves the Inbox content and updates the state as a flow.

Returns

The content for the Inbox as a Flow of InboxUIState.

Syntax

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

Kotlin

fun getInboxUI(): Flow<InboxUIState>

refresh

Refreshes the Inbox content and updates the data into the flow returned by getInboxUI.

Syntax

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

Kotlin

suspend fun refresh()