Freigeben über


GlobalSearchSession.ReportSystemUsage Method

Definition

Reports that a particular document has been used from a system surface.

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

Parameters

request
ReportSystemUsageRequest

The usage reporting request.

executor
IExecutor

Executor on which to invoke the callback.

callback
IConsumer

Callback to receive errors. If the operation succeeds, the callback will be invoked with an AppSearchResult whose value is null. The callback will be invoked with an AppSearchResult of AppSearchResult#RESULT_SECURITY_ERROR if this API is invoked by an app which is not part of the system.

Attributes

Remarks

Java documentation for android.app.appsearch.GlobalSearchSession.reportSystemUsage(android.app.appsearch.ReportSystemUsageRequest, java.util.concurrent.Executor, java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.lang.Void>>).

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