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
Kotlin
Copied to your clipboardinterface 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
Kotlin
Copied to your clipboardfun getUIContent(): Flow<Result<List<AepUITemplate>>>
getContent (Deprecated)
Deprecated — use getUIContent instead. This suspend overload eagerly fetches content before returning the flow and requires a coroutine call site to obtain the flow reference.
Syntax
Kotlin
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
Kotlin
Copied to your clipboardsuspend fun refreshContent()

