public class SuggestionSearch extends SearcherInternal
Modifier and Type | Method and Description |
---|---|
void |
destroy()
释放对象资源
|
static SuggestionSearch |
newInstance() |
boolean |
requestSuggestion(SuggestionSearchOption option)
建议请求入口
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
setOnGetSuggestionResultListener(OnGetSuggestionResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |
void |
setOnGetSuggestionResultListener(OnGetSuggestionResultListener listener)
设置建议请求结果监听器
V4.3.2版本之后(包含V4.3.2版本),该方法要先于检索方法
requestSuggestion(SuggestionSearchOption)
调用,否则会在某些场景出现拿不到回调结果的情况 |
public static SuggestionSearch newInstance()
public boolean requestSuggestion(SuggestionSearchOption option)
setOnGetSuggestionResultListener(OnGetSuggestionResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况option
- 请求参数java.lang.IllegalStateException
java.lang.IllegalArgumentException
public void setOnGetSuggestionResultListener(OnGetSuggestionResultListener listener)
requestSuggestion(SuggestionSearchOption)
调用,否则会在某些场景出现拿不到回调结果的情况listener
- 请求结果监听器java.lang.IllegalStateException
java.lang.IllegalArgumentException
public void destroy()