Builder


class Builder
kotlin.Any
   ↳ android.app.appsearch.SearchSuggestionResult.Builder

The Builder class of SearchSuggestionResult.

Summary

Public constructors

Public methods
SearchSuggestionResult

Build a SearchSuggestionResult object

SearchSuggestionResult.Builder
setSuggestedResult(suggestedResult: String)

Sets the suggested result that could be used as query expression in the android.app.appsearch.AppSearchSession#search.

Public constructors

Builder

Builder()

Public methods

build

fun build(): SearchSuggestionResult

Build a SearchSuggestionResult object

Return
SearchSuggestionResult This value cannot be null.

setSuggestedResult

fun setSuggestedResult(suggestedResult: String): SearchSuggestionResult.Builder

Sets the suggested result that could be used as query expression in the android.app.appsearch.AppSearchSession#search.

The suggested result should only contain lowercase or special characters.

Parameters
suggestedResult String: This value cannot be null.
Return
SearchSuggestionResult.Builder This value cannot be null.