CompositeSequenceableLoaderFactory


@UnstableApi
interface CompositeSequenceableLoaderFactory


A factory to create composite SequenceableLoaders.

Summary

Public functions

SequenceableLoader!
create(
    loaders: (Mutable)List<SequenceableLoader!>!,
    loaderTrackTypes: (Mutable)List<(Mutable)List<@C.TrackType Int!>!>!
)

Creates a composite SequenceableLoader.

SequenceableLoader!

This function is deprecated.

Use empty for an empty composite loader, or create for a non-empty one.

SequenceableLoader!

Returns an empty composite SequenceableLoader, with no delegate loaders.

Public functions

create

fun create(
    loaders: (Mutable)List<SequenceableLoader!>!,
    loaderTrackTypes: (Mutable)List<(Mutable)List<@C.TrackType Int!>!>!
): SequenceableLoader!

Creates a composite SequenceableLoader.

Parameters
loaders: (Mutable)List<SequenceableLoader!>!

The sub-loaders that make up the SequenceableLoader to be built.

loaderTrackTypes: (Mutable)List<(Mutable)List<@C.TrackType Int!>!>!

The track types handled by each entry in loaders. Must be the same as loaders.

Returns
SequenceableLoader!

A composite SequenceableLoader that comprises the given loaders.

createCompositeSequenceableLoader

fun createCompositeSequenceableLoader(loaders: Array<SequenceableLoader!>!): SequenceableLoader!

empty

fun empty(): SequenceableLoader!

Returns an empty composite SequenceableLoader, with no delegate loaders.