DisplayTimeWindow.Builder


public final class DisplayTimeWindow.Builder


Builder class for DisplayTimeWindow.

Summary

Public constructors

Public methods

DisplayTimeWindow
DisplayTimeWindow.Builder

Sets the expiry time for the content in milliseconds.

DisplayTimeWindow.Builder
@CanIgnoreReturnValue
setStartTimestampMillis(long startTimestampMillis)

Sets the start timestamp for the content in milliseconds.

Public constructors

Builder

public Builder()

Public methods

build

public DisplayTimeWindow build()

setEndTimestampMillis

@CanIgnoreReturnValue
public DisplayTimeWindow.Builder setEndTimestampMillis(long endTimestampMillis)

Sets the expiry time for the content in milliseconds.

If set, content expires after this time

Optional.

setStartTimestampMillis

@CanIgnoreReturnValue
public DisplayTimeWindow.Builder setStartTimestampMillis(long startTimestampMillis)

Sets the start timestamp for the content in milliseconds.

If set, content is displayed only after this time else the content is displayed right away.

Optional.