SearchSuggestionsViewOptions

public class SearchSuggestionsViewOptions

已知的直接子类
SearchContentViewOptions

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


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

摘要

嵌套类型

用于通知点击事件的处理程序。

点击事件的属性。

搜索建议视图布局。

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

搜索建议视图主题。

公共字段

CustomTabsIntent.Builder

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

SearchSuggestionsViewOptions.Layout

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

SearchSuggestionsViewOptions.Theme

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

公共构造函数

公共方法

CustomTabsIntent.Builder

获取搜索建议视图的 CustomTabsIntent.Builder。

SearchSuggestionsViewOptions.Layout

获取搜索建议视图的布局。

SearchSuggestionsViewOptions.Theme

获取搜索建议视图的主题。

SearchSuggestionsViewOptions

设置搜索建议视图的 ClickNotificationHandler。

SearchSuggestionsViewOptions

设置搜索建议视图的 CustomTabsIntent.Builder,该 builder 可用于自定义自定义标签页的外观。

SearchSuggestionsViewOptions

设置搜索建议视图的布局。

SearchSuggestionsViewOptions

设置搜索建议视图的 OpenUrlHandler。

SearchSuggestionsViewOptions

设置搜索建议视图的主题。

公开字段

customTabsIntentBuilder

public CustomTabsIntent.Builder customTabsIntentBuilder

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

布局

public SearchSuggestionsViewOptions.Layout layout

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

主题

public SearchSuggestionsViewOptions.Theme theme

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

公共构造函数

SearchSuggestionsViewOptions

public SearchSuggestionsViewOptions()

公共方法

getCustomTabsIntentBuilder

public CustomTabsIntent.Builder getCustomTabsIntentBuilder()

获取搜索建议视图的 CustomTabsIntent.Builder。

返回
CustomTabsIntent.Builder

当前的 CustomTabsIntent.Builder。

getLayout

public SearchSuggestionsViewOptions.Layout getLayout()

获取搜索建议视图的布局。

返回
SearchSuggestionsViewOptions.Layout

当前布局。

getTheme

public SearchSuggestionsViewOptions.Theme getTheme()

获取搜索建议视图的主题。

返回
SearchSuggestionsViewOptions.Theme

当前主题。

setClickNotificationHandler

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setClickNotificationHandler(
    SearchSuggestionsViewOptions.ClickNotificationHandler clickNotificationHandler
)

设置搜索建议视图的 ClickNotificationHandler。

参数
SearchSuggestionsViewOptions.ClickNotificationHandler clickNotificationHandler

要设置的 ClickNotificationHandler 对象。

返回
SearchSuggestionsViewOptions

当前的 SearchSuggestionsViewOptions 对象。

setCustomTabsIntentBuilder

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setCustomTabsIntentBuilder(
    CustomTabsIntent.Builder customTabsIntentBuilder
)

设置搜索建议视图的 CustomTabsIntent.Builder,该 builder 可用于自定义自定义标签页的外观。

参数
CustomTabsIntent.Builder customTabsIntentBuilder

要设置的 CustomTabsIntent.Builder 对象。

返回
SearchSuggestionsViewOptions

当前的 SearchSuggestionsViewOptions 对象。

setLayout

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setLayout(SearchSuggestionsViewOptions.Layout layout)

设置搜索建议视图的布局。

参数
SearchSuggestionsViewOptions.Layout layout

要设置的布局对象。

返回
SearchSuggestionsViewOptions

当前的 SearchSuggestionsViewOptions 对象。

setOpenUrlHandler

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setOpenUrlHandler(
    SearchSuggestionsViewOptions.OpenUrlHandler openUrlHandler
)

设置搜索建议视图的 OpenUrlHandler。

参数
SearchSuggestionsViewOptions.OpenUrlHandler openUrlHandler

要设置的 OpenUrlHandler 对象。

返回
SearchSuggestionsViewOptions

当前的 SearchSuggestionsViewOptions 对象。

setTheme

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setTheme(SearchSuggestionsViewOptions.Theme theme)

设置搜索建议视图的主题。

参数
SearchSuggestionsViewOptions.Theme theme

要设置的 Theme 对象。

返回
SearchSuggestionsViewOptions

当前的 SearchSuggestionsViewOptions 对象。