OnDevicePersonalizationManager.ExecuteInIsolatedService 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.
Executes an IsolatedService in the OnDevicePersonalization sandbox.
[Android.Runtime.Register("executeInIsolatedService", "(Landroid/adservices/ondevicepersonalization/ExecuteInIsolatedServiceRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetExecuteInIsolatedService_Landroid_adservices_ondevicepersonalization_ExecuteInIsolatedServiceRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public virtual void ExecuteInIsolatedService(Android.AdServices.OnDevicePersonalization.ExecuteInIsolatedServiceRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("executeInIsolatedService", "(Landroid/adservices/ondevicepersonalization/ExecuteInIsolatedServiceRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetExecuteInIsolatedService_Landroid_adservices_ondevicepersonalization_ExecuteInIsolatedServiceRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member ExecuteInIsolatedService : Android.AdServices.OnDevicePersonalization.ExecuteInIsolatedServiceRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.ExecuteInIsolatedService : Android.AdServices.OnDevicePersonalization.ExecuteInIsolatedServiceRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- request
- ExecuteInIsolatedServiceRequest
the ExecuteInIsolatedServiceRequest request
- executor
- IExecutor
the Executor on which to invoke the callback.
- receiver
- IOutcomeReceiver
This returns a ExecuteInIsolatedServiceResponse object on success or
an Exception on failure. For success case, refer to ExecuteInIsolatedServiceResponse. For error case, the receiver returns an OnDevicePersonalizationException if execution of the handler fails.
- Attributes
Remarks
Executes an IsolatedService in the OnDevicePersonalization sandbox. The platform binds to the specified IsolatedService in an isolated process and calls IsolatedWorker#onExecute(ExecuteInput, android.os.OutcomeReceiver) with the caller-provided parameters. When the IsolatedService finishes execution, the platform returns tokens that refer to the results from the service to the caller. These tokens can be subsequently used to display results in a android.view.SurfaceView within the calling app.
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.