GetSearchSuggestionsViewGeneratorCallback

interface GetSearchSuggestionsViewGeneratorCallback


從後端擷取搜尋建議 UI 檢視畫面時的事件回呼。

摘要

公開函式

Unit
onError(errorMessage: String!)

收到搜尋建議 UI 檢視畫面產生器錯誤時呼叫。

Unit

收到搜尋建議 UI 檢視畫面產生器時呼叫。

公開函式

onError

fun onError(errorMessage: String!): Unit

收到搜尋建議 UI 檢視畫面產生器錯誤時呼叫。

參數
errorMessage: String!

錯誤訊息的相關訊息。

onSuccess

fun onSuccess(generator: SearchSuggestionsViewGenerator!): Unit

收到搜尋建議 UI 檢視畫面產生器時呼叫。

參數
generator: SearchSuggestionsViewGenerator!

檢視產生器,可產生包含所有搜尋建議的視圖。