item

fun item(item: Uri, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a Uri.

Return

The SequenceBuilder instance.

Parameters

item

The Uri of the item to add.

configure

A lambda to configure the MediaItem.Builder before editing.

block

A lambda to configure the EditedMediaItem.Builder.


fun item(item: File, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a File.

Return

The SequenceBuilder instance.

Parameters

item

The File of the item to add.

configure

A lambda to configure the MediaItem.Builder before editing.

block

A lambda to configure the EditedMediaItem.Builder.


fun item(mediaItem: MediaItem, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a MediaItem.

Return

The SequenceBuilder instance.

Parameters

mediaItem

The MediaItem to add.

block

A lambda to configure the EditedMediaItem.Builder.