IIsolatedWorker.OnEvent(EventInput, IOutcomeReceiver) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
處理由 HTML 輸出EventUrlProvider中嵌入的平台提供的追蹤 URL #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
參數
- input
- EventInput
計算事件資料所需的參數。
- receiver
- IOutcomeReceiver
回撥會接收結果 EventOutput 或 IsolatedServiceException。
<p>若此方法透過回調回傳 null 結果或例外,或拋 RuntimeException出 ,則不會將資料寫入 EVENTS 資料表。
- 屬性
備註
處理由 HTML 輸出EventUrlProvider中嵌入的平台提供的追蹤 URL #onRender(RenderInput, android.os.OutcomeReceiver) 請求觸發的事件。 平台會更新 EVENTS 表。EventOutput#getEventLogRecord()
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。