generate Page Content
Generates the content for a specific page based on the provided options.
This function updates the page content for the given page in the options, which includes updating the main window and setting the current page. It then calls the dispStreams function to display the streams for that page.
Parameters
options
The options containing the page number and parameters
Example:
val options = GeneratePageContentOptions(
page = 1,
parameters = object : GeneratePageContentParameters {
override val paginatedStreams = listOf(
listOf(stream1, stream2),
listOf(stream3, stream4)
)
override val currentUserPage = 0
override val updateMainWindow = true
override val updateCurrentUserPage = { page ->
}
override val updateUpdateMainWindow = { flag ->
}
override val dispStreams = { dispOptions ->
}
override fun getUpdatedAllParams() = this
}
)
generatePageContent(options)Content copied to clipboard