DefaultPreloadManager.Status


public class DefaultPreloadManager.Status implements TargetPreloadStatusControl.PreloadStatus


An implementation of TargetPreloadStatusControl.PreloadStatus that describes the preload status of the PreloadMediaSource.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation DefaultPreloadManager.Status.Stage

Stages for the preload status.

Constants

static final int

The PreloadMediaSource is loaded for a specific duration from the default start position, in milliseconds.

static final int

The PreloadMediaSource has completed preparation.

static final int

The PreloadMediaSource has tracks selected.

Public fields

final int
final long

Public constructors

Status(@DefaultPreloadManager.Status.Stage int stage, long value)

Public methods

int

The stage of the preloading.

long

The associated value of the preloading stage.

Constants

STAGE_LOADED_FOR_DURATION_MS

public static final int STAGE_LOADED_FOR_DURATION_MS = 2

The PreloadMediaSource is loaded for a specific duration from the default start position, in milliseconds.

STAGE_SOURCE_PREPARED

public static final int STAGE_SOURCE_PREPARED = 0

The PreloadMediaSource has completed preparation.

STAGE_TRACKS_SELECTED

public static final int STAGE_TRACKS_SELECTED = 1

The PreloadMediaSource has tracks selected.

Public fields

stage

@DefaultPreloadManager.Status.Stage
public final int stage

value

public final long value

Public constructors

Status

public Status(@DefaultPreloadManager.Status.Stage int stage)

Status

public Status(@DefaultPreloadManager.Status.Stage int stage, long value)

Public methods

getStage

@DefaultPreloadManager.Status.Stage
public int getStage()

The stage of the preloading.

getValue

public long getValue()

The associated value of the preloading stage.