SearchSuggestionsViewOptions

class SearchSuggestionsViewOptions

已知的直接子类
SearchContentViewOptions

此类提供了搜索内容视图的所有自定义选项。


此类提供了搜索建议视图的所有自定义选项。

摘要

嵌套类型

用于通知点击事件的处理脚本。

点击事件的属性。

搜索建议视图布局。

用于以自定义方式打开网址的处理脚本。

搜索建议视图主题。

公共构造函数

公共函数

SearchSuggestionsViewOptions!

设置搜索建议视图的 ClickNotificationHandler。

SearchSuggestionsViewOptions!

设置搜索建议视图的 OpenUrlHandler。

公共属性

CustomTabsIntent.Builder!

用于自定义 Android 自定义标签页外观的 CustomTabsIntent build。

SearchSuggestionsViewOptions.Layout!

搜索建议界面视图的布局。

SearchSuggestionsViewOptions.Theme!

搜索建议界面视图的主题。

公共构造函数

SearchSuggestionsViewOptions

SearchSuggestionsViewOptions()

公共函数

setClickNotificationHandler

@CanIgnoreReturnValue
fun setClickNotificationHandler(
    clickNotificationHandler: SearchSuggestionsViewOptions.ClickNotificationHandler!
): SearchSuggestionsViewOptions!

设置搜索建议视图的 ClickNotificationHandler。

参数
clickNotificationHandler: SearchSuggestionsViewOptions.ClickNotificationHandler!

要设置的 ClickNotificationHandler 对象。

返回
SearchSuggestionsViewOptions!

当前的 SearchSuggestionsViewOptions 对象。

setOpenUrlHandler

@CanIgnoreReturnValue
fun setOpenUrlHandler(
    openUrlHandler: SearchSuggestionsViewOptions.OpenUrlHandler!
): SearchSuggestionsViewOptions!

设置搜索建议视图的 OpenUrlHandler。

参数
openUrlHandler: SearchSuggestionsViewOptions.OpenUrlHandler!

要设置的 OpenUrlHandler 对象。

返回
SearchSuggestionsViewOptions!

当前的 SearchSuggestionsViewOptions 对象。

公共属性

customTabsIntentBuilder

var customTabsIntentBuilderCustomTabsIntent.Builder!

用于自定义 Android 自定义标签页外观的 CustomTabsIntent build。

布局

var layoutSearchSuggestionsViewOptions.Layout!

搜索建议界面视图的布局。

主题

var themeSearchSuggestionsViewOptions.Theme!

搜索建议界面视图的主题。