IIsolatedWorker.OnRender(RenderInput, IOutcomeReceiver) 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.
Generates HTML for the results that were returned as a result of
#onExecute(ExecuteInput, android.os.OutcomeReceiver)
.
[Android.Runtime.Register("onRender", "(Landroid/adservices/ondevicepersonalization/RenderInput;Landroid/os/OutcomeReceiver;)V", "GetOnRender_Landroid_adservices_ondevicepersonalization_RenderInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnRender (Android.AdServices.OnDevicePersonalization.RenderInput input, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("onRender", "(Landroid/adservices/ondevicepersonalization/RenderInput;Landroid/os/OutcomeReceiver;)V", "GetOnRender_Landroid_adservices_ondevicepersonalization_RenderInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnRender : Android.AdServices.OnDevicePersonalization.RenderInput * Android.OS.IOutcomeReceiver -> unit
override this.OnRender : Android.AdServices.OnDevicePersonalization.RenderInput * Android.OS.IOutcomeReceiver -> unit
Parameters
- input
- RenderInput
Parameters for the render request.
- receiver
- IOutcomeReceiver
Callback that receives the result RenderOutput
or an
IsolatedServiceException
.
<p>If this method returns a null
result or exception via the callback, or
throws a RuntimeException
, the error is also reported to calling
apps as an OnDevicePersonalizationException
with error code OnDevicePersonalizationException#ERROR_ISOLATED_SERVICE_FAILED
.
- Attributes
Remarks
Generates HTML for the results that were returned as a result of #onExecute(ExecuteInput, android.os.OutcomeReceiver)
. Called when a client app calls OnDevicePersonalizationManager#requestSurfacePackage(SurfacePackageToken, IBinder, int, int, int, java.util.concurrent.Executor, OutcomeReceiver)
. The platform will render this HTML in an android.webkit.WebView
inside a fenced frame.
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.