Version: 2021.3
public static Search.ISearchView ShowPicker (Search.SearchContext context, Action<SearchItem,bool> selectHandler, Action<SearchItem> trackingHandler, Func<SearchItem,bool> filterHandler, IEnumerable<SearchItem> subset, string title, float itemSize, float defaultWidth, float defaultHeight, Search.SearchFlags flags);

参数

context Search context to start with.
selectHandler Callback invoked when an item is selected.
trackingHandler Callback invoked when an item is clicked without it being the final selection.
filterHandler Callback invoked to filter search item results to display.
title Topic to search.
itemSize Initial result view item size.
defaultWidth Initial width of the window.
defaultHeight Initial height of the window.
subset Initial set of items to be searched.
flags Options defining how the query is performed.

返回

ISearchView Creates a new search window.

描述

Open a search item picker window.


public static Search.ISearchView ShowPicker (Search.SearchViewState viewState);

参数

viewState Search view state used to open the Search Picker window.

返回

ISearchView Creates a new search window.

描述

Open a Search Picker window.