Compartir a través de


AppSearchManager.CreateGlobalSearchSession(IExecutor, IConsumer) Method

Definition

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&lt;GlobalSearchSession&gt; of performing this operation. Or a AppSearchResult with failure reason code and error information.

Attributes

Remarks

Java documentation for android.app.appsearch.AppSearchManager.createGlobalSearchSession(java.util.concurrent.Executor, java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.GlobalSearchSession>>).

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