SearchSpec.Builder.SetOrder(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the order of returned search results, the default is SearchSpec.ORDER_DESCENDING, meaning that results with higher scores come first.
[Android.Runtime.Register("setOrder", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder SetOrder(int order);
[<Android.Runtime.Register("setOrder", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.SetOrder : int -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- order
- Int32
Value is one of the following: SearchSpec.ORDER_DESCENDING SearchSpec.ORDER_ASCENDING
Returns
- Attributes
Remarks
Sets the order of returned search results, the default is SearchSpec.ORDER_DESCENDING, meaning that results with higher scores come first. This order field will be ignored if RankingStrategy = RANKING_STRATEGY_NONE.
Android reference for android.app.appsearch.SearchSpec.Builder.setOrder.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.