GlobalSearchSession.ReportSystemUsage 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.
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
Reports that a particular document has been used from a system surface.
See AppSearchSession#reportUsage
for a general description of document usage, as well as an API that can be used by the app itself.
Usage reported via this method is accounted separately from usage reported via AppSearchSession#reportUsage
and may be accessed using the constants SearchSpec#RANKING_STRATEGY_SYSTEM_USAGE_COUNT
and SearchSpec#RANKING_STRATEGY_SYSTEM_USAGE_LAST_USED_TIMESTAMP
.
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.