Language

SetSchemaRequest.Builder.SetForceOverride(Boolean) Method

Definition

Sets whether or not to override the current schema in the AppSearchSession database.

[Android.Runtime.Register("setForceOverride", "(Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SetSchemaRequest.Builder SetForceOverride(bool forceOverride);
[<Android.Runtime.Register("setForceOverride", "(Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)>]
member this.SetForceOverride : bool -> Android.App.AppSearch.SetSchemaRequest.Builder

Parameters

forceOverride
Boolean

Returns

Attributes

Remarks

Sets whether or not to override the current schema in the AppSearchSession database. Call this method whenever backward incompatible changes need to be made by setting forceOverride to true. As a result, during execution of the setSchema operation, all documents that are incompatible with the new schema will be deleted and the new schema will be saved and persisted. By default, this is false.

Android reference for android.app.appsearch.SetSchemaRequest.Builder.setForceOverride.

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