CompositeSequenceableLoaderFactory


@UnstableApi
public interface CompositeSequenceableLoaderFactory


A factory to create composite SequenceableLoaders.

Summary

Public methods

abstract SequenceableLoader
create(
    List<SequenceableLoader> loaders,
    List<List<@C.TrackType Integer>> loaderTrackTypes
)

Creates a composite SequenceableLoader.

abstract SequenceableLoader
createCompositeSequenceableLoader(SequenceableLoader[] loaders)

This method is deprecated.

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

abstract SequenceableLoader

Returns an empty composite SequenceableLoader, with no delegate loaders.

Public methods

create

abstract SequenceableLoader create(
    List<SequenceableLoader> loaders,
    List<List<@C.TrackType Integer>> loaderTrackTypes
)

Creates a composite SequenceableLoader.

Parameters
List<SequenceableLoader> loaders

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

List<List<@C.TrackType Integer>> loaderTrackTypes

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

abstract SequenceableLoader createCompositeSequenceableLoader(SequenceableLoader[] loaders)

empty

abstract SequenceableLoader empty()

Returns an empty composite SequenceableLoader, with no delegate loaders.