GlobalSearchSession.OpenBlobForRead Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens a batch of AppSearch Blobs for reading.
[Android.Runtime.Register("openBlobForRead", "(Ljava/util/Set;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetOpenBlobForRead_Ljava_util_Set_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=36)]
public virtual 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", "GetOpenBlobForRead_Ljava_util_Set_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=36)>]
abstract member OpenBlobForRead : System.Collections.Generic.ICollection<Android.App.AppSearch.AppSearchBlobHandle> * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.OpenBlobForRead : System.Collections.Generic.ICollection<Android.App.AppSearch.AppSearchBlobHandle> * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- handles
- ICollection<AppSearchBlobHandle>
The AppSearchBlobHandle
s 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.
See AppSearchSession#openBlobForRead
for a general description when a blob is for read.
The returned OpenBlobForReadResponse
must be closed after use to avoid resource leaks. Failing to close it will result in system file descriptor exhaustion.
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.