ErrorCallback

@IviExperimental(reasons = [])
abstract class ErrorCallback

Container for callbacks for various error conditions.

If any of the callbacks is of no use for a specific purpose, it can be left unimplemented, since they are all already pre-implemented as empty.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open fun browsingFailed(sourceId: SourceId, mediaItemId: String)

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

Link copied to clipboard
open fun connectionEnded(sourceId: SourceId)

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

Link copied to clipboard
open fun connectionFailed(sourceId: SourceId)

It was not possible to communicate with the media source identified by sourceId, or it has refused the connection attempt.

Link copied to clipboard
open fun logInRequired(sourceId: SourceId, pendingIntent: PendingIntent)

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

Link copied to clipboard
open fun resultCodeReceived(sourceId: SourceId, resultCode: ResultCode)

The media source identified by sourceId returned a specific resultCode.

Link copied to clipboard
open fun timeout(sourceId: SourceId)

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