IIsolatedWorker.OnEvent(EventInput, 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.
Handles an event triggered by a request to a platform-provided tracking URL EventUrlProvider
that was embedded in the HTML output returned by
#onRender(RenderInput, android.os.OutcomeReceiver)
.
[Android.Runtime.Register("onEvent", "(Landroid/adservices/ondevicepersonalization/EventInput;Landroid/os/OutcomeReceiver;)V", "GetOnEvent_Landroid_adservices_ondevicepersonalization_EventInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnEvent (Android.AdServices.OnDevicePersonalization.EventInput input, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("onEvent", "(Landroid/adservices/ondevicepersonalization/EventInput;Landroid/os/OutcomeReceiver;)V", "GetOnEvent_Landroid_adservices_ondevicepersonalization_EventInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnEvent : Android.AdServices.OnDevicePersonalization.EventInput * Android.OS.IOutcomeReceiver -> unit
override this.OnEvent : Android.AdServices.OnDevicePersonalization.EventInput * Android.OS.IOutcomeReceiver -> unit
Parameters
- input
- EventInput
The parameters needed to compute event data.
- receiver
- IOutcomeReceiver
Callback that receives the result EventOutput
or an
IsolatedServiceException
.
<p>If this method returns a null
result or exception via the callback, or
throws a RuntimeException
, no data is written to the EVENTS table.
- Attributes
Remarks
Handles an event triggered by a request to a platform-provided tracking URL EventUrlProvider
that was embedded in the HTML output returned by #onRender(RenderInput, android.os.OutcomeReceiver)
. The platform updates the EVENTS table with EventOutput#getEventLogRecord()
.
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.