Partager via


IIsolatedWorker.OnExecute(ExecuteInput, IOutcomeReceiver) Method

Definition

Handles a request from an app.

[Android.Runtime.Register("onExecute", "(Landroid/adservices/ondevicepersonalization/ExecuteInput;Landroid/os/OutcomeReceiver;)V", "GetOnExecute_Landroid_adservices_ondevicepersonalization_ExecuteInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnExecute (Android.AdServices.OnDevicePersonalization.ExecuteInput input, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("onExecute", "(Landroid/adservices/ondevicepersonalization/ExecuteInput;Landroid/os/OutcomeReceiver;)V", "GetOnExecute_Landroid_adservices_ondevicepersonalization_ExecuteInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnExecute : Android.AdServices.OnDevicePersonalization.ExecuteInput * Android.OS.IOutcomeReceiver -> unit
override this.OnExecute : Android.AdServices.OnDevicePersonalization.ExecuteInput * Android.OS.IOutcomeReceiver -> unit

Parameters

input
ExecuteInput

Request Parameters from the calling app.

receiver
IOutcomeReceiver

Callback that receives the result ExecuteOutput or an IsolatedServiceException. If this method throws a RuntimeException or returns either null or IsolatedServiceException, the error is indicated to the calling app as an OnDevicePersonalizationException with error code OnDevicePersonalizationException#ERROR_ISOLATED_SERVICE_FAILED. To avoid leaking private data to the calling app, more detailed errors are not reported to the caller. If the IsolatedService needs to report additional data beyond the error code to its backend servers, it should populate the logging fields in ExecuteOutput with the additional error data for logging, and rely on Federated Analytics for the stats.

Attributes

Remarks

Handles a request from an app. This method is called when an app calls OnDevicePersonalizationManager#execute(ComponentName, PersistableBundle, java.util.concurrent.Executor, OutcomeReceiver) that refers to a named IsolatedService.

Java documentation for android.adservices.ondevicepersonalization.IsolatedWorker.onExecute(android.adservices.ondevicepersonalization.ExecuteInput, android.os.OutcomeReceiver<android.adservices.ondevicepersonalization.ExecuteOutput, android.adservices.ondevicepersonalization.IsolatedServiceException>).

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