EditedMediaItemSequence.Builder


class EditedMediaItemSequence.Builder


A builder for instances of EditedMediaItemSequence.

Summary

Public constructors

Builder(editedMediaItems: Array<EditedMediaItem!>!)

Creates an instance.

Builder(editedMediaItems: (Mutable)List<EditedMediaItem!>!)

Public constructors

Builder

Builder(editedMediaItems: Array<EditedMediaItem!>!)

Creates an instance.

Builder

Builder(editedMediaItems: (Mutable)List<EditedMediaItem!>!)

Public functions

addGap

@CanIgnoreReturnValue
fun addGap(durationUs: Long): EditedMediaItemSequence.Builder!

Adds a gap to the sequence.

A gap is a period of time with no media.

Gaps are only supported in sequences of audio.

Parameters
durationUs: Long

The duration of the gap, in milliseconds.

Returns
EditedMediaItemSequence.Builder!

This builder, for convenience.

addItem

@CanIgnoreReturnValue
fun addItem(item: EditedMediaItem!): EditedMediaItemSequence.Builder!

Adds the item to the sequence.

Parameters
item: EditedMediaItem!

The EditedMediaItem to add.

Returns
EditedMediaItemSequence.Builder!

This builder, for convenience.

addItems

@CanIgnoreReturnValue
fun addItems(items: Array<EditedMediaItem!>!): EditedMediaItemSequence.Builder!

Adds the items to the sequence.

Parameters
items: Array<EditedMediaItem!>!

The EditedMediaItem instances to add.

Returns
EditedMediaItemSequence.Builder!

This builder, for convenience.

addItems

@CanIgnoreReturnValue
fun addItems(items: (Mutable)List<EditedMediaItem!>!): EditedMediaItemSequence.Builder!

Adds all the items in the list to the sequence.

Parameters
items: (Mutable)List<EditedMediaItem!>!

The list of EditedMediaItem instances to add.

Returns
EditedMediaItemSequence.Builder!

This builder, for convenience.

build

fun build(): EditedMediaItemSequence!

Builds the EditedMediaItemSequence.

There must be at least one item in the sequence.

setIsLooping

@CanIgnoreReturnValue
fun setIsLooping(isLooping: Boolean): EditedMediaItemSequence.Builder!

See isLooping.

Looping is false by default.

Parameters
isLooping: Boolean

Whether this sequence should loop.

Returns
EditedMediaItemSequence.Builder!

This builder, for convenience.