SearchSuggestionsViewOptions

public class SearchSuggestionsViewOptions

Known direct subclasses
SearchContentViewOptions

This class provides all the customization options for the search content view.


This class provides all the customization options for the search suggestions view.

Summary

Nested types

The handler to notify the click events.

The properties of a click event.

The search suggestions view layout.

The handler to open the url in the customized way.

The search suggestions view theme.

Public fields

CustomTabsIntent.Builder

The CustomTabsIntent build that customizes the appearance of the Android Custom Tabs.

SearchSuggestionsViewOptions.Layout

The layout of the search suggestions UI view.

SearchSuggestionsViewOptions.Theme

The theme of the search suggestions UI view.

Public constructors

Public methods

CustomTabsIntent.Builder

Gets the CustomTabsIntent.Builder of the search suggestions view.

SearchSuggestionsViewOptions.Layout

Gets the layout of the search suggestions view.

SearchSuggestionsViewOptions.Theme

Gets the theme of the search suggestions view.

SearchSuggestionsViewOptions

Sets the ClickNotificationHandler of the search suggestions view.

SearchSuggestionsViewOptions

Sets the CustomTabsIntent.Builder of the search suggestions view which can be used to customize the appearance of the custom tab.

SearchSuggestionsViewOptions

Sets the layout of the search suggestions view.

SearchSuggestionsViewOptions

Sets the OpenUrlHandler of the search suggestions view.

SearchSuggestionsViewOptions

Sets the theme of the search suggestions view.

Public fields

customTabsIntentBuilder

public CustomTabsIntent.Builder customTabsIntentBuilder

The CustomTabsIntent build that customizes the appearance of the Android Custom Tabs.

layout

public SearchSuggestionsViewOptions.Layout layout

The layout of the search suggestions UI view.

theme

public SearchSuggestionsViewOptions.Theme theme

The theme of the search suggestions UI view.

Public constructors

SearchSuggestionsViewOptions

public SearchSuggestionsViewOptions()

Public methods

getCustomTabsIntentBuilder

public CustomTabsIntent.Builder getCustomTabsIntentBuilder()

Gets the CustomTabsIntent.Builder of the search suggestions view.

Returns
CustomTabsIntent.Builder

the current CustomTabsIntent.Builder.

getLayout

public SearchSuggestionsViewOptions.Layout getLayout()

Gets the layout of the search suggestions view.

Returns
SearchSuggestionsViewOptions.Layout

the current layout.

getTheme

public SearchSuggestionsViewOptions.Theme getTheme()

Gets the theme of the search suggestions view.

Returns
SearchSuggestionsViewOptions.Theme

the current theme.

setClickNotificationHandler

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setClickNotificationHandler(
    SearchSuggestionsViewOptions.ClickNotificationHandler clickNotificationHandler
)

Sets the ClickNotificationHandler of the search suggestions view.

Parameters
SearchSuggestionsViewOptions.ClickNotificationHandler clickNotificationHandler

the ClickNotificationHandler object to set.

Returns
SearchSuggestionsViewOptions

the current SearchSuggestionsViewOptions object.

setCustomTabsIntentBuilder

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setCustomTabsIntentBuilder(
    CustomTabsIntent.Builder customTabsIntentBuilder
)

Sets the CustomTabsIntent.Builder of the search suggestions view which can be used to customize the appearance of the custom tab.

Parameters
CustomTabsIntent.Builder customTabsIntentBuilder

the CustomTabsIntent.Builder object to set.

Returns
SearchSuggestionsViewOptions

the current SearchSuggestionsViewOptions object.

setLayout

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setLayout(SearchSuggestionsViewOptions.Layout layout)

Sets the layout of the search suggestions view.

Parameters
SearchSuggestionsViewOptions.Layout layout

the Layout object to set.

Returns
SearchSuggestionsViewOptions

the current SearchSuggestionsViewOptions object.

setOpenUrlHandler

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setOpenUrlHandler(
    SearchSuggestionsViewOptions.OpenUrlHandler openUrlHandler
)

Sets the OpenUrlHandler of the search suggestions view.

Parameters
SearchSuggestionsViewOptions.OpenUrlHandler openUrlHandler

the OpenUrlHandler object to set.

Returns
SearchSuggestionsViewOptions

the current SearchSuggestionsViewOptions object.

setTheme

@CanIgnoreReturnValue
public SearchSuggestionsViewOptions setTheme(SearchSuggestionsViewOptions.Theme theme)

Sets the theme of the search suggestions view.

Parameters
SearchSuggestionsViewOptions.Theme theme

the Theme object to set.

Returns
SearchSuggestionsViewOptions

the current SearchSuggestionsViewOptions object.