Language

SearchSpec.Builder.SetVerbatimSearchEnabled(Boolean) Method

Definition

Sets the VERBATIM_SEARCH feature as enabled/disabled according to the enabled parameter.

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

Parameters

enabled
Boolean

Enables the feature if true; otherwise, disables it. When enabled, the query can use the verbatim string operator. For example, "foo/bar" OR baz treats foo/bar as a single verbatim token.

Returns

This builder instance.

Attributes

Remarks

Sets the VERBATIM_SEARCH feature as enabled/disabled according to the enabled parameter.

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

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