Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.app.appsearch.SearchSuggestionResult.Builder |
The Builder class of SearchSuggestionResult
.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
SearchSuggestionResult |
build() Build a |
SearchSuggestionResult.Builder |
setSuggestedResult(suggestedResult: String) Sets the suggested result that could be used as query expression in the |
Public constructors
Public methods
build
Added in API level 34
fun build(): SearchSuggestionResult
Build a SearchSuggestionResult
object
Return | |
---|---|
SearchSuggestionResult |
This value cannot be null . |
setSuggestedResult
Added in API level 34
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 . |