SearchSuggestionsViewOptions.Layout

public enum SearchSuggestionsViewOptions.Layout


The search suggestions view layout.

Summary

Enum Values

CAROUSEL

In this layout, search suggestions will be displayed in two lines, one for the headline and one for the search suggestions which is horizontally scrollable.

COMPACT_CAROUSEL

This is the default layout.

TILING

In this layout, search suggestions will all be displayed in multiple lines like tiling.

Public methods

static SearchSuggestionsViewOptions.Layout

Returns the enum constant of this type with the specified name.

static SearchSuggestionsViewOptions.Layout[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

SearchSuggestionsViewOptions.Layout SearchSuggestionsViewOptions.Layout.CAROUSEL

In this layout, search suggestions will be displayed in two lines, one for the headline and one for the search suggestions which is horizontally scrollable.

SearchSuggestionsViewOptions.Layout SearchSuggestionsViewOptions.Layout.COMPACT_CAROUSEL

This is the default layout. In this layout, search suggestions will be displayed in a single line, and users should swipe horizontally to view more suggestions.

TILING

SearchSuggestionsViewOptions.Layout SearchSuggestionsViewOptions.Layout.TILING

In this layout, search suggestions will all be displayed in multiple lines like tiling.

Public methods

valueOf

public static SearchSuggestionsViewOptions.Layout valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
SearchSuggestionsViewOptions.Layout

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static SearchSuggestionsViewOptions.Layout[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
SearchSuggestionsViewOptions.Layout[]

an array containing the constants of this enum type, in the order they're declared