SearchContentViewGenerator

class SearchContentViewGenerator


The class to generate the search content UI view based on the search content data and the customization options.

Summary

Public functions

Int

Gets the number of search content blocks inside this generator.

SearchContentViewOptions!

Gets the view's customization options.

Unit

Loads more search content blocks.

View!
populateView(context: Context!, index: Int)

Generates the search content UI view for a certain search content block.

Unit
updateView(view: View!, context: Context!)

Updates the search content UI view generated from populateView to match the most updated customization option.

Public functions

getSearchContentBlockCount

fun getSearchContentBlockCount(): Int

Gets the number of search content blocks inside this generator.

Returns
Int

the number of search content blocks inside this generator

getSearchContentViewOptions

fun getSearchContentViewOptions(): SearchContentViewOptions!

Gets the view's customization options.

Returns
SearchContentViewOptions!

the current SearchContentViewOptions object.

loadMoreSearchContent

fun loadMoreSearchContent(callback: GetSearchContentViewGeneratorCallback!): Unit

Loads more search content blocks.

Parameters
callback: GetSearchContentViewGeneratorCallback!

callback to be invoked when more search content blocks are loaded.

populateView

fun populateView(context: Context!, index: Int): View!

Generates the search content UI view for a certain search content block.

Parameters
context: Context!

Activity context.

index: Int

the index of the targeted search content block.

updateView

fun updateView(view: View!, context: Context!): Unit

Updates the search content UI view generated from populateView to match the most updated customization option.

Parameters
view: View!

the view to be updated.

context: Context!

Activity context.