AepUIContentProvider

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

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

Interface Definition

Copied to your clipboard
interface AepUIContentProvider {
suspend fun getContent(): Flow<List<AepUITemplate>>
suspend fun refreshContent()
}

Methods

getContent

Retrieves the content for the UI.

Returns

The content for the UI as a flow of AepUITemplates.

Syntax

Copied to your clipboard
suspend fun getContent(): Flow<List<AepUITemplate>>

refreshContent

Refreshes the content for the UI. Implementations should update the data into the flow returned by getContent.

Syntax

Copied to your clipboard
suspend fun refreshContent()