com.yandex.mobile.ads.instream.player.ad.error
Enum InstreamAdPlayerError.Reason
java.lang.Object
java.lang.Enum<InstreamAdPlayerError.Reason>
com.yandex.mobile.ads.instream.player.ad.error.InstreamAdPlayerError.Reason
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<InstreamAdPlayerError.Reason>
- Enclosing class:
- InstreamAdPlayerError
public static enum InstreamAdPlayerError.Reason extends java.lang.Enum<InstreamAdPlayerError.Reason>
Список причин возниковения ошибки.
Enum Constant Summary
Enum Constant and Description |
---|
FILE_NOT_FOUND |
INVALID_FILE |
NETWORK_UNAVAILABLE |
TIMED_OUT |
UNKNOWN |
UNSUPPORTED_CODEC |
UNSUPPORTED_FILE_FORMAT |
Method Summary
Modifier and Type | Method and Description |
---|---|
static InstreamAdPlayerError.Reason | valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InstreamAdPlayerError.Reason[] | values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Enum Constant Detail
INVALID_FILE
public static final InstreamAdPlayerError.Reason INVALID_FILE
FILE_NOT_FOUND
public static final InstreamAdPlayerError.Reason FILE_NOT_FOUND
TIMED_OUT
public static final InstreamAdPlayerError.Reason TIMED_OUT
NETWORK_UNAVAILABLE
public static final InstreamAdPlayerError.Reason NETWORK_UNAVAILABLE
UNSUPPORTED_FILE_FORMAT
public static final InstreamAdPlayerError.Reason UNSUPPORTED_FILE_FORMAT
UNSUPPORTED_CODEC
public static final InstreamAdPlayerError.Reason UNSUPPORTED_CODEC
UNKNOWN
public static final InstreamAdPlayerError.Reason UNKNOWN
Method Detail
values
public static InstreamAdPlayerError.Reason[] values()
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (InstreamAdPlayerError.Reason c : InstreamAdPlayerError.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static InstreamAdPlayerError.Reason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null