GetSearchContentViewGeneratorCallback

abstract class GetSearchContentViewGeneratorCallback


Callback for events when retrieving search content UI view from the backend.

Summary

Public functions

abstract Unit
onError(errorMessage: String!)

Called when a getting search suggestions UI view generator error happens.

Unit

Called when loading more search content fails.

Unit

Called when more search content is loaded.

abstract Unit

Called when a search suggestions UI view generator is received.

Public constructors

GetSearchContentViewGeneratorCallback

GetSearchContentViewGeneratorCallback()

Public functions

onError

abstract fun onError(errorMessage: String!): Unit

Called when a getting search suggestions UI view generator error happens.

Parameters
errorMessage: String!

message about the error.

onLoadMoreSearchContentError

fun onLoadMoreSearchContentError(errorMessage: String!): Unit

Called when loading more search content fails.

Parameters
errorMessage: String!

message about the error.

onLoadMoreSearchContentSuccess

fun onLoadMoreSearchContentSuccess(generator: SearchContentViewGenerator!): Unit

Called when more search content is loaded.

Parameters
generator: SearchContentViewGenerator!

the updated view generator which is the same instance as the original generator.

onSuccess

abstract fun onSuccess(generator: SearchContentViewGenerator!): Unit

Called when a search suggestions UI view generator is received.

Parameters
generator: SearchContentViewGenerator!

the view generator which can generate a view containing all the search suggestions.