Language

SearchSpec.Builder.SetScorablePropertyRankingEnabled(Boolean) Method

Definition

Sets the ScorablePropertyRanking feature as enabled or disabled.

[Android.Runtime.Register("setScorablePropertyRankingEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.SearchSpec.Builder SetScorablePropertyRankingEnabled(bool enabled);
[<Android.Runtime.Register("setScorablePropertyRankingEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)>]
member this.SetScorablePropertyRankingEnabled : bool -> Android.App.AppSearch.SearchSpec.Builder

Parameters

enabled
Boolean

Enables the feature if true, otherwise disables it.

Returns

Attributes

Remarks

Sets the ScorablePropertyRanking feature as enabled or disabled. If enabled, 'getScorableProperty' function can be used in the advanced ranking expression. For details, see SearchSpec.Builder.setRankingStrategy(String).

Android reference for android.app.appsearch.SearchSpec.Builder.setScorablePropertyRankingEnabled.

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.

Applies to