Language

EventLogRecord.Builder.SetRequestLogRecord(RequestLogRecord) Method

Definition

The existing RequestLogRecord that this payload should be associated with.

[Android.Runtime.Register("setRequestLogRecord", "(Landroid/adservices/ondevicepersonalization/RequestLogRecord;)Landroid/adservices/ondevicepersonalization/EventLogRecord$Builder;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.EventLogRecord.Builder SetRequestLogRecord(Android.AdServices.OnDevicePersonalization.RequestLogRecord? value);
[<Android.Runtime.Register("setRequestLogRecord", "(Landroid/adservices/ondevicepersonalization/RequestLogRecord;)Landroid/adservices/ondevicepersonalization/EventLogRecord$Builder;", "", ApiSince=35)>]
member this.SetRequestLogRecord : Android.AdServices.OnDevicePersonalization.RequestLogRecord -> Android.AdServices.OnDevicePersonalization.EventLogRecord.Builder

Parameters

value
RequestLogRecord

The existing request log record to associate with the event. In OnEvent(EventInput, IOutcomeReceiver), use null to associate the event with the current request.

Returns

This builder, with the request log record assigned.

Attributes

Remarks

The existing RequestLogRecord that this payload should be associated with. In an implementation of IsolatedWorker.onExecute(ExecuteInput,android.os.OutcomeReceiver), this should be set to a value returned by LogReader.getRequests(Instant,Instant). In an implementation of IsolatedWorker.onEvent(EventInput,android.os.OutcomeReceiver), this should be set to null because the payload will be automatically associated with the current RequestLogRecord.

Android reference for android.adservices.ondevicepersonalization.EventLogRecord.Builder.setRequestLogRecord.

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