Chapter.Builder


class Chapter.Builder


Builder for Chapter instances.

Summary

Public constructors

Constructs an instance.

Public functions

Chapter!

Builds a Chapter instance with the provided values.

Chapter.Builder!

Sets the end time of the chapter, or TIME_UNSET if not known.

Chapter.Builder!

Sets whether the chapter is hidden.

Chapter.Builder!

Sets the start time of the chapter, or TIME_UNSET if not known.

Chapter.Builder!

Sets the title of this chapter, or null if not known.

Public constructors

Builder

Builder()

Constructs an instance.

Public functions

build

fun build(): Chapter!

Builds a Chapter instance with the provided values.

setEndTimeMs

@CanIgnoreReturnValue
fun setEndTimeMs(endTimeMs: Long): Chapter.Builder!

Sets the end time of the chapter, or TIME_UNSET if not known.

Defaults to TIME_UNSET.

See also
getEndTimeMs

setHidden

@CanIgnoreReturnValue
fun setHidden(isHidden: Boolean): Chapter.Builder!

Sets whether the chapter is hidden.

Defaults to false.

See also
isHidden

setStartTimeMs

@CanIgnoreReturnValue
fun setStartTimeMs(startTimeMs: Long): Chapter.Builder!

Sets the start time of the chapter, or TIME_UNSET if not known.

Defaults to TIME_UNSET.

See also
getStartTimeMs

setTitle

@CanIgnoreReturnValue
fun setTitle(title: Label?): Chapter.Builder!

Sets the title of this chapter, or null if not known.

Defaults to null.

See also
getTitle