Compartilhar via


IIsolatedWorker.OnWebTrigger(WebTriggerInput, IOutcomeReceiver) Method

Definition

Handles a Web Trigger event from a browser.

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

Parameters

input
WebTriggerInput

The parameters needed to process Web Trigger event.

receiver
IOutcomeReceiver

Callback that receives the result WebTriggerOutput or an IsolatedServiceException. Should be called with a WebTriggerOutput object populated with a set of records to be written to the REQUESTS or EVENTS tables. <p>If this method returns a null result or exception via the callback, or throws a RuntimeException, no data is written to the REQUESTS orEVENTS tables.

Attributes

Remarks

Handles a Web Trigger event from a browser. A Web Trigger event occurs when a browser registers a web trigger event with the OS using the Attribution and Reporting API. If the data in the web trigger payload indicates that the event should be forwarded to an IsolatedService, the platform will call this function with the web trigger data.

Java documentation for android.adservices.ondevicepersonalization.IsolatedWorker.onWebTrigger(android.adservices.ondevicepersonalization.WebTriggerInput, android.os.OutcomeReceiver<android.adservices.ondevicepersonalization.WebTriggerOutput, 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