Partager via


GlobalSearchSession.GetSchema(String, String, IExecutor, IConsumer) Method

Definition

Retrieves the collection of schemas most recently successfully provided to AppSearchSession#setSchema for any types belonging to the requested package and database that the caller has been granted access to.

[Android.Runtime.Register("getSchema", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetSchema_Ljava_lang_String_Ljava_lang_String_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=33)]
public virtual void GetSchema (string packageName, string databaseName, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("getSchema", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetSchema_Ljava_lang_String_Ljava_lang_String_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=33)>]
abstract member GetSchema : string * string * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetSchema : string * string * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

packageName
String

the package that owns the requested AppSearchSchema instances.

databaseName
String

the database that owns the requested AppSearchSchema instances.

executor
IExecutor
callback
IConsumer
Attributes

Remarks

Retrieves the collection of schemas most recently successfully provided to AppSearchSession#setSchema for any types belonging to the requested package and database that the caller has been granted access to.

If the requested package/database combination does not exist or the caller has not been granted access to it, then an empty GetSchemaResponse will be returned.

Java documentation for android.app.appsearch.GlobalSearchSession.getSchema(java.lang.String, java.lang.String, java.util.concurrent.Executor, java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.GetSchemaResponse>>).

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