MediaError

@IviExperimental(reasons = [])
sealed class MediaError

All the possible errors reported by a SourceClient identified by sourceId.

Inheritors

Types

Link copied to clipboard
data class BrowsingFailed(val sourceId: SourceId, val mediaItemId: String) : MediaError

It was not possible to retrieve the contents of a mediaItemId from the media source identified by sourceId.

Link copied to clipboard
data class ConnectionEnded(val sourceId: SourceId) : MediaError

The media source identified by sourceId has disconnected. This may happen when it crashes, or when it is uninstalled.

Link copied to clipboard
data class ConnectionFailed(val sourceId: SourceId, val resultCode: ResultCode? = null) : MediaError

It was not possible to communicate with the media source identified by sourceId, or it has refused the connection attempt. Optional resultCode may provide additional information.

Link copied to clipboard
data class LogInRequired(val sourceId: SourceId, val pendingIntent: PendingIntent) : MediaError

The media source identified by sourceId requires the user to log in using the pendingIntent, before being able to communicate with it.

Link copied to clipboard
data class ResultCodeReceived(val sourceId: SourceId, val resultCode: ResultCode) : MediaError

The media source identified by sourceId returned a specific resultCode.

Link copied to clipboard
data class Timeout(val sourceId: SourceId) : MediaError

The last operation for sourceId timed out. The user can decide whether to try again.

Properties

Link copied to clipboard
open val sourceId: SourceId