LoadErrorHandlingPolicy.FallbackOptions


class LoadErrorHandlingPolicy.FallbackOptions


Holds information about the available fallback options.

Summary

Public constructors

FallbackOptions(
    numberOfLocations: Int,
    numberOfExcludedLocations: Int,
    numberOfTracks: Int,
    numberOfExcludedTracks: Int
)

Creates an instance.

Public functions

Boolean

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

Public properties

Int

The number of locations that are already excluded.

Int

The number of tracks that are already excluded.

Int

The number of available locations.

Int

The number of tracks.

Public constructors

FallbackOptions

FallbackOptions(
    numberOfLocations: Int,
    numberOfExcludedLocations: Int,
    numberOfTracks: Int,
    numberOfExcludedTracks: Int
)

Creates an instance.

Public functions

isFallbackAvailable

fun isFallbackAvailable(@LoadErrorHandlingPolicy.FallbackType type: Int): Boolean

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

Public properties

numberOfExcludedLocations

val numberOfExcludedLocationsInt

The number of locations that are already excluded.

numberOfExcludedTracks

val numberOfExcludedTracksInt

The number of tracks that are already excluded.

numberOfLocations

val numberOfLocationsInt

The number of available locations.

numberOfTracks

val numberOfTracksInt

The number of tracks.