YouTubeThumbnailLoader.ErrorReason
extends Enum<E extends Enum<E>>
java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.google.android.youtube.player.YouTubeThumbnailLoader.ErrorReason |
Overview
Describes the reasons for an error in a YouTubeThumbnailView
.
Summary
Enum values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
YouTubeThumbnailLoader.ErrorReason.INTERNAL_ERROR |
An internal error prevented the thumbnail from being loaded. | ||||||||||
YouTubeThumbnailLoader.ErrorReason.NETWORK_ERROR |
The thumbnail could not be loaded due a network request failing. | ||||||||||
YouTubeThumbnailLoader.ErrorReason.UNKNOWN |
The reason for the error is not known. |
Public methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
YouTubeThumbnailLoader.ErrorReason |
|||||||||||
ErrorReason[] |
Inherited methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enum values
public
static
final
YouTubeThumbnailLoader.ErrorReason
INTERNAL_ERROR
An internal error prevented the thumbnail from being loaded. Retrying may resolve the problem.
public
static
final
YouTubeThumbnailLoader.ErrorReason
NETWORK_ERROR
The thumbnail could not be loaded due a network request failing. Check that the device is connected to the Internet.
public
static
final
YouTubeThumbnailLoader.ErrorReason
UNKNOWN
The reason for the error is not known. This may be because the client library is older than
the YouTube API service and does not know of the actual ErrorReason
that the service is returning. Retrying may resolve the problem.
Public methods
public
static
YouTubeThumbnailLoader.ErrorReason
valueOf
(String name)
public
static
final
ErrorReason[]
values
()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-04 UTC.