@ExperimentalApi public class AutocompleteResult extends Object
Returned results can be "suggested" (promoted to the user) or "search" (anything found that isn't promoted). There should be no items duplicated between the two result lists, and either list may be empty.
Modifier and Type | Class and Description |
---|---|
static class |
AutocompleteResult.Builder |
Modifier and Type | Method and Description |
---|---|
static AutocompleteResult.Builder |
builder() |
List<AutocompleteResultItem> |
getSearchResults()
Search results are intended to be shown to the user below those returned by
getSuggestedResults() . |
List<AutocompleteResultItem> |
getSuggestedResults()
Suggested results are intended to be shown to the user above those returned by
getSearchResults() ,
and may be returned with or without search results. |
public static AutocompleteResult.Builder builder()
public List<AutocompleteResultItem> getSuggestedResults()
getSearchResults()
,
and may be returned with or without search results.
An example of when only suggested results could be returned is when there is a blank query.
public List<AutocompleteResultItem> getSearchResults()
getSuggestedResults()
.Copyright © 2003–2017 Atlassian. All rights reserved.