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 {suspend fun getContent(): Flow<Result<List<AepUITemplate>>>suspend fun refreshContent()}
Methods
getContent
Retrieves the content for the UI.
Returns
The content for the UI as a Flow of Result which contains a list of AepUITemplates.
Syntax
Kotlin
Copied to your clipboardsuspend fun getContent(): Flow<Result<List<AepUITemplate>>>
refreshContent
Refreshes the content for the UI. Implementations should update the data into the flow returned by getContent.
Syntax
Kotlin
Copied to your clipboardsuspend fun refreshContent()