AppSearchSession.OpenBlobForRead Method

Definition

Opens a batch of AppSearch Blobs for reading.

[Android.Runtime.Register("openBlobForRead", "(Ljava/util/Set;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=36)]
public void OpenBlobForRead(System.Collections.Generic.ICollection<Android.App.AppSearch.AppSearchBlobHandle> handles, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("openBlobForRead", "(Ljava/util/Set;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=36)>]
member this.OpenBlobForRead : System.Collections.Generic.ICollection<Android.App.AppSearch.AppSearchBlobHandle> * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

handles
ICollection<AppSearchBlobHandle>

The AppSearchBlobHandles that identifies the blobs.

executor
IExecutor

Executor on which to invoke the callback.

callback
IConsumer

Callback to receive the OpenBlobForReadResponse.

Attributes

Remarks

Opens a batch of AppSearch Blobs for reading.

Only blobs committed via #commitBlob are available for reading.

The returned OpenBlobForReadResponse must be closed after use to avoid resource leaks. Failing to close it will result in system file descriptor exhaustion.

Java documentation for android.app.appsearch.AppSearchSession.openBlobForRead(java.util.Set<android.app.appsearch.AppSearchBlobHandle>, java.util.concurrent.Executor, java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.OpenBlobForReadResponse>>).

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