GetTrendingSearchesViewOptions

public final class GetTrendingSearchesViewOptions


This class contains all the options necessary to request trending searches UI view. Callers need to obtain a valid client ID before for response to be returned.

Summary

Public constructors

Public methods

GetTrendingSearchesViewOptions

Specifies the client ID used to request the trending searches view.

GetTrendingSearchesViewOptions

Specifies the maximum number of trends returned from the backend.

GetTrendingSearchesViewOptions

Sets the view options which provides the options to customize the trending searches UI view.

Public constructors

GetTrendingSearchesViewOptions

public GetTrendingSearchesViewOptions()

Public methods

setClientId

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setClientId(String clientId)

Specifies the client ID used to request the trending searches view.

Parameters
String clientId

the client ID to specify.

Returns
GetTrendingSearchesViewOptions

the current GetTrendingSearchesViewOptions object.

setMaxNumTrends

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setMaxNumTrends(int maxNumTrends)

Specifies the maximum number of trends returned from the backend.

Parameters
int maxNumTrends

the maximum number of returned trends.

Returns
GetTrendingSearchesViewOptions

the current GetTrendingSearchesViewOptions object.

setTrendingSearchesViewOptions

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setTrendingSearchesViewOptions(
    SearchSuggestionsViewOptions trendingSearchesViewOptions
)

Sets the view options which provides the options to customize the trending searches UI view.

Parameters
SearchSuggestionsViewOptions trendingSearchesViewOptions

the SearchSuggestionsViewOptions object used to customize the trending searches UI view.

Returns
GetTrendingSearchesViewOptions

the current GetTrendingSearchesViewOptions object.