SearchSuggestionsViewOptions

class SearchSuggestionsViewOptions

已知的直接子類別
SearchContentViewOptions

這個類別提供搜尋內容檢視畫面的所有自訂選項。


這個類別提供搜尋建議檢視畫面的所有自訂選項。

摘要

巢狀類型

用於通知點擊事件的處理常式。

點擊事件的屬性。

搜尋建議檢視畫面的版面配置。

以自訂方式開啟網址的處理常式。

搜尋建議檢視畫面的主題。

公用建構函式

公開函式

SearchSuggestionsViewOptions!

設定搜尋建議檢視畫面的 ClickNotificationHandler。

SearchSuggestionsViewOptions!

設定搜尋建議檢視畫面的 OpenUrlHandler。

公開屬性

CustomTabsIntent.Builder!

可自訂 Android 自訂分頁的外觀的 CustomTabsIntent 版本。

SearchSuggestionsViewOptions.Layout!

搜尋建議 UI 檢視畫面的版面配置。

SearchSuggestionsViewOptions.Theme!

搜尋建議 UI 檢視畫面的主題。

公用建構函式

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 版本。

版面配置

var layoutSearchSuggestionsViewOptions.Layout!

搜尋建議 UI 檢視畫面的版面配置。

主題

var themeSearchSuggestionsViewOptions.Theme!

搜尋建議 UI 檢視畫面的主題。