AppSearchSession.Put Method

Definition

Indexes documents into the AppSearchSession database.

[Android.Runtime.Register("put", "(Landroid/app/appsearch/PutDocumentsRequest;Ljava/util/concurrent/Executor;Landroid/app/appsearch/BatchResultCallback;)V", "", ApiSince=31)]
public void Put (Android.App.AppSearch.PutDocumentsRequest request, Java.Util.Concurrent.IExecutor executor, Android.App.AppSearch.IBatchResultCallback callback);
[<Android.Runtime.Register("put", "(Landroid/app/appsearch/PutDocumentsRequest;Ljava/util/concurrent/Executor;Landroid/app/appsearch/BatchResultCallback;)V", "", ApiSince=31)>]
member this.Put : Android.App.AppSearch.PutDocumentsRequest * Java.Util.Concurrent.IExecutor * Android.App.AppSearch.IBatchResultCallback -> unit

Parameters

request
PutDocumentsRequest

containing documents to be indexed.

executor
IExecutor

Executor on which to invoke the callback.

callback
IBatchResultCallback

Callback to receive pending result of performing this operation. The keys of the returned AppSearchBatchResult are the IDs of the input documents. The values are null if they were successfully indexed, or a failed AppSearchResult otherwise. If an unexpected internal error occurs in the AppSearch service, BatchResultCallback#onSystemError will be invoked with a Throwable.

Attributes

Remarks

Java documentation for android.app.appsearch.AppSearchSession.put(android.app.appsearch.PutDocumentsRequest, java.util.concurrent.Executor, android.app.appsearch.BatchResultCallback<java.lang.String, java.lang.Void>).

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