Page Summary
-
MediaError.Builderis used to build aMediaErrorobject. -
It allows setting custom data, detailed error code, reason, and type for the media error.
-
The detailed error code, reason, and type should correspond to predefined constants in
MediaError. -
The
build()method finalizes the construction and returns theMediaErrorobject.
Builder for MediaError
.
Public Constructor Summary
Public Method Summary
| MediaError | |
| MediaError.Builder | |
| MediaError.Builder | |
| MediaError.Builder | |
| MediaError.Builder |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public MediaError build ()
Build a MediaError
.
public MediaError.Builder setCustomData ( JSONObject customData)
Sets the custom data.
public MediaError.Builder setDetailedErrorCode ( Integer detailedErrorCode)
Sets the detailed error code.
The detailed error code must be one of the constants defined in MediaError.DetailedErrorCode
.
Set to null
for unspecified.
public MediaError.Builder setReason ( String reason)
Sets the error reason.
The reason must be one of the constants with ERROR_REASON_
prefix in MediaError
.
public MediaError.Builder setType ( String type)
Sets the type of the media error.
The type must be one of the constants with ERROR_TYPE_
prefix in MediaError
.

