The Android Developer Challenge is back! Submit your idea before December 2.

Builder

class Builder : Builder<WatchNextProgram.Builder!>
androidx.tvprovider.media.tv.WatchNextProgram.Builder

This Builder class simplifies the creation of a WatchNextProgram object.

Summary

Public constructors

Creates a new Builder object.

Creates a new Builder object with values copied from another Program.

Public methods

WatchNextProgram!

WatchNextProgram.Builder!
setLastEngagementTimeUtcMillis(lastEngagementTimeUtcMillis: Long)

Sets the time when the program is going to begin in milliseconds since the epoch.

WatchNextProgram.Builder!
setWatchNextType(watchNextType: Int)

Sets the "watch next" type of this program content.

Public constructors

<init>

Builder()

Creates a new Builder object.

<init>

Builder(other: WatchNextProgram!)

Creates a new Builder object with values copied from another Program.

Parameters
other WatchNextProgram!: The Program you're copying from.

Public methods

build

fun build(): WatchNextProgram!
Return
WatchNextProgram!: A new Program with values supplied by the Builder.

setLastEngagementTimeUtcMillis

fun setLastEngagementTimeUtcMillis(lastEngagementTimeUtcMillis: Long): WatchNextProgram.Builder!

Sets the time when the program is going to begin in milliseconds since the epoch.

Parameters
lastEngagementTimeUtcMillis Long: The value of WatchNextPrograms#COLUMN_LAST_ENGAGEMENT_TIME_UTC_MILLIS for the program.
Return
WatchNextProgram.Builder!: This Builder object to allow for chaining of calls to builder methods.

setWatchNextType

fun setWatchNextType(watchNextType: Int): WatchNextProgram.Builder!

Sets the "watch next" type of this program content.

The value should match one of the followings: WatchNextPrograms#WATCH_NEXT_TYPE_CONTINUE, WatchNextPrograms#WATCH_NEXT_TYPE_NEXT, and WatchNextPrograms#WATCH_NEXT_TYPE_NEW.

Parameters
watchNextType Int: The value of WatchNextPrograms#COLUMN_WATCH_NEXT_TYPE for the program.
Return
WatchNextProgram.Builder!: This Builder object to allow for chaining of calls to builder methods.