OnDevicePersonalizationManager.ExecuteInIsolatedService 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 OnDevicePersonalization 沙盒中执行。IsolatedService
[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
参数
- request
- ExecuteInIsolatedServiceRequest
请求ExecuteInIsolatedServiceRequest
- executor
- IExecutor
调用 Executor 回调的依据。
- receiver
- IOutcomeReceiver
这会返回 ExecuteInIsolatedServiceResponse 成功或 Exception 失败时的对象。 有关成功案例,请参阅 ExecuteInIsolatedServiceResponse。 对于错误情况,接收方返回 OnDevicePersonalizationException 处理程序的执行失败。
- 特性
注解
在 OnDevicePersonalization 沙盒中执行。IsolatedService 平台绑定到独立进程中的指定 IsolatedService ,并使用调用方提供的参数进行调用 IsolatedWorker#onExecute(ExecuteInput, android.os.OutcomeReceiver) 。
IsolatedService完成执行后,平台将引用服务结果的令牌返回到调用方。 这些令牌随后可用于在 android.view.SurfaceView 调用应用中显示结果。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。