Edit in GitHubLog an issue

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 {
@Deprecated("Use getUIContent instead", ReplaceWith("getUIContent"))
suspend fun getContent(): Flow<Result<List<AepUITemplate>>>
fun getUIContent(): Flow<Result<List<AepUITemplate>>>
suspend fun refreshContent()
}

Methods

getUIContent

Retrieves the content for the UI. Content is fetched lazily when the returned flow is collected.

Returns

The content for the UI as a Flow of Result containing a list of AepUITemplates.

Syntax

Copied to your clipboard
fun getUIContent(): Flow<Result<List<AepUITemplate>>>

getContent (Deprecated)

Syntax

Copied to your clipboard
@Deprecated("Use getUIContent instead", ReplaceWith("getUIContent"))
suspend fun getContent(): Flow<Result<List<AepUITemplate>>>

refreshContent

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

Syntax

Copied to your clipboard
suspend fun refreshContent()
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.