DisplayTimeWindow.Builder


class DisplayTimeWindow.Builder


Builder class for DisplayTimeWindow.

Summary

Public constructors

Public functions

DisplayTimeWindow!
DisplayTimeWindow.Builder!

Sets the expiry time for the content in milliseconds.

DisplayTimeWindow.Builder!

Sets the start timestamp for the content in milliseconds.

Public constructors

Builder

Builder()

Public functions

build

fun build(): DisplayTimeWindow!

setEndTimestampMillis

@CanIgnoreReturnValue
fun setEndTimestampMillis(endTimestampMillis: Long): DisplayTimeWindow.Builder!

Sets the expiry time for the content in milliseconds.

If set, content expires after this time

Optional.

setStartTimestampMillis

@CanIgnoreReturnValue
fun setStartTimestampMillis(startTimestampMillis: Long): DisplayTimeWindow.Builder!

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.