Share via


Migrator.OnUpgrade(Int32, Int32, GenericDocument) Method

Definition

Migrates GenericDocument to a newer version of AppSearchSchema.

[Android.Runtime.Register("onUpgrade", "(IILandroid/app/appsearch/GenericDocument;)Landroid/app/appsearch/GenericDocument;", "GetOnUpgrade_IILandroid_app_appsearch_GenericDocument_Handler", ApiSince=31)]
public abstract Android.App.AppSearch.GenericDocument OnUpgrade (int currentVersion, int finalVersion, Android.App.AppSearch.GenericDocument document);
[<Android.Runtime.Register("onUpgrade", "(IILandroid/app/appsearch/GenericDocument;)Landroid/app/appsearch/GenericDocument;", "GetOnUpgrade_IILandroid_app_appsearch_GenericDocument_Handler", ApiSince=31)>]
abstract member OnUpgrade : int * int * Android.App.AppSearch.GenericDocument -> Android.App.AppSearch.GenericDocument

Parameters

currentVersion
Int32

The current version of the document's schema.

finalVersion
Int32

The final version that documents need to be migrated to.

document
GenericDocument

The GenericDocument need to be translated to new version.

Returns

A GenericDocument in new version.

Attributes

Remarks

Java documentation for android.app.appsearch.Migrator.onUpgrade(int, int, android.app.appsearch.GenericDocument).

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