public final class

SearchSuggestionResult.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.SearchSuggestionResult.Builder

Overview

The Builder class of SearchSuggestionResult.

Summary

Constructors
publicBuilder()

Methods
public SearchSuggestionResultbuild()

Build a SearchSuggestionResult object

public SearchSuggestionResult.BuildersetSuggestedResult(java.lang.String suggestedResult)

Sets the suggested result that could be used as query expression in the AppSearchSession.search(String, SearchSpec).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public SearchSuggestionResult.Builder setSuggestedResult(java.lang.String suggestedResult)

Sets the suggested result that could be used as query expression in the AppSearchSession.search(String, SearchSpec).

The suggested result should only contain lowercase or special characters.

public SearchSuggestionResult build()

Build a SearchSuggestionResult object