PreviewProgram.Builder


class PreviewProgram.Builder


This Builder class simplifies the creation of a PreviewProgram object.

Summary

Public constructors

Creates a new Builder object.

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

Public functions

PreviewProgram!
PreviewProgram.Builder!
setChannelId(channelId: Long)

Sets the ID of the Channel that contains this program.

PreviewProgram.Builder!
setWeight(weight: Int)

Sets the weight of the preview program within the channel.

Public constructors

Builder

Added in 1.1.0-alpha02
Builder()

Creates a new Builder object.

Builder

Added in 1.1.0-alpha02
Builder(other: PreviewProgram!)

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

Parameters
other: PreviewProgram!

The Program you're copying from.

Public functions

build

Added in 1.1.0-alpha02
fun build(): PreviewProgram!
Returns
PreviewProgram!

A new Program with values supplied by the Builder.

setChannelId

Added in 1.1.0-alpha02
fun setChannelId(channelId: Long): PreviewProgram.Builder!

Sets the ID of the Channel that contains this program.

setWeight

Added in 1.1.0-alpha02
fun setWeight(weight: Int): PreviewProgram.Builder!

Sets the weight of the preview program within the channel.

Parameters
weight: Int

The value of COLUMN_WEIGHT for the program.

Returns
PreviewProgram.Builder!

This Builder object to allow for chaining of calls to builder methods.