Language

AppSearchSchema.BooleanPropertyConfig.Builder.SetScoringEnabled Method

Definition

Sets the property enabled or disabled for scoring.

[Android.Runtime.Register("setScoringEnabled", "(Z)Landroid/app/appsearch/AppSearchSchema$BooleanPropertyConfig$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.AppSearchSchema.BooleanPropertyConfig.Builder SetScoringEnabled(bool scoringEnabled);
[<Android.Runtime.Register("setScoringEnabled", "(Z)Landroid/app/appsearch/AppSearchSchema$BooleanPropertyConfig$Builder;", "", ApiSince=36)>]
member this.SetScoringEnabled : bool -> Android.App.AppSearch.AppSearchSchema.BooleanPropertyConfig.Builder

Parameters

scoringEnabled
Boolean

Returns

Attributes

Remarks

Sets the property enabled or disabled for scoring. If this method is not called, the default value is false. If enabled, it can be used in the advanced ranking expression via the function of 'getScorableProperty'. For the detailed documentation, see SearchSpec.Builder.setRankingStrategy(String).

Android reference for android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder.setScoringEnabled.

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