Language

CustomAudience.Builder.SetExpirationTime(Instant) Method

Definition

Sets the time, truncated to milliseconds, after which the CustomAudience should be removed.

[Android.Runtime.Register("setExpirationTime", "(Ljava/time/Instant;)Landroid/adservices/customaudience/CustomAudience$Builder;", "", ApiSince=34)]
public Android.AdServices.CustomAudiences.CustomAudience.Builder SetExpirationTime(Java.Time.Instant? expirationTime);
[<Android.Runtime.Register("setExpirationTime", "(Ljava/time/Instant;)Landroid/adservices/customaudience/CustomAudience$Builder;", "", ApiSince=34)>]
member this.SetExpirationTime : Java.Time.Instant -> Android.AdServices.CustomAudiences.CustomAudience.Builder

Parameters

expirationTime
Instant

The time after which the audience is no longer eligible for updates or ad selection, or null to use the service's default expiry.

Returns

This builder with the expiration time set.

Attributes

Remarks

Sets the time, truncated to milliseconds, after which the CustomAudience should be removed.

See CustomAudience.getExpirationTime() for more information.

Android reference for android.adservices.customaudience.CustomAudience.Builder.setExpirationTime.

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