LoadErrorHandlingPolicy.FallbackOptions


public final class LoadErrorHandlingPolicy.FallbackOptions


Holds information about the available fallback options.

Summary

Public fields

final int

The number of locations that are already excluded.

final int

The number of tracks that are already excluded.

final int

The number of available locations.

final int

The number of tracks.

Public constructors

FallbackOptions(
    int numberOfLocations,
    int numberOfExcludedLocations,
    int numberOfTracks,
    int numberOfExcludedTracks
)

Creates an instance.

Public methods

boolean

Returns whether a fallback is available for the given fallback type.

Public fields

numberOfExcludedLocations

public final int numberOfExcludedLocations

The number of locations that are already excluded.

numberOfExcludedTracks

public final int numberOfExcludedTracks

The number of tracks that are already excluded.

numberOfLocations

public final int numberOfLocations

The number of available locations.

numberOfTracks

public final int numberOfTracks

The number of tracks.

Public constructors

FallbackOptions

public FallbackOptions(
    int numberOfLocations,
    int numberOfExcludedLocations,
    int numberOfTracks,
    int numberOfExcludedTracks
)

Creates an instance.

Public methods

isFallbackAvailable

public boolean isFallbackAvailable(@LoadErrorHandlingPolicy.FallbackType int type)

Returns whether a fallback is available for the given fallback type.