Udostępnij za pośrednictwem


AppSearchManager.CreateSearchSession Method

Definition

Creates a new AppSearchSession.

[Android.Runtime.Register("createSearchSession", "(Landroid/app/appsearch/AppSearchManager$SearchContext;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetCreateSearchSession_Landroid_app_appsearch_AppSearchManager_SearchContext_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)]
public virtual void CreateSearchSession (Android.App.AppSearch.AppSearchManager.SearchContext searchContext, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("createSearchSession", "(Landroid/app/appsearch/AppSearchManager$SearchContext;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetCreateSearchSession_Landroid_app_appsearch_AppSearchManager_SearchContext_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
abstract member CreateSearchSession : Android.App.AppSearch.AppSearchManager.SearchContext * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.CreateSearchSession : Android.App.AppSearch.AppSearchManager.SearchContext * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

searchContext
AppSearchManager.SearchContext

The SearchContext contains all information to create a new AppSearchSession

executor
IExecutor

Executor on which to invoke the callback.

callback
IConsumer

The AppSearchResult&lt;AppSearchSession&gt; of performing this operation. Or a AppSearchResult with failure reason code and error information.

Attributes

Remarks

Java documentation for android.app.appsearch.AppSearchManager.createSearchSession(android.app.appsearch.SearchContext, java.util.concurrent.Executor, java.util.function.Consumer).

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