AppSearchManager.CreateGlobalSearchSession(IExecutor, IConsumer) 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.
Creates a new GlobalSearchSession
.
[Android.Runtime.Register("createGlobalSearchSession", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetCreateGlobalSearchSession_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)]
public virtual void CreateGlobalSearchSession (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("createGlobalSearchSession", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetCreateGlobalSearchSession_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
abstract member CreateGlobalSearchSession : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.CreateGlobalSearchSession : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- executor
- IExecutor
Executor on which to invoke the callback.
- callback
- IConsumer
The AppSearchResult
<GlobalSearchSession
> of performing
this operation. Or a AppSearchResult
with failure reason code and error
information.
- Attributes
Remarks
Creates a new GlobalSearchSession
.
This process requires an AppSearch native indexing file system. If it's not created, the initialization process will create one under the user's credential encrypted directory.
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.