MediaError.Builder

public static class MediaError.Builder extends Object

Builder for MediaError.

Public Constructor Summary

Public Method Summary

MediaError
build()
Build a MediaError.
MediaError.Builder
setCustomData(JSONObject customData)
Sets the custom data.
MediaError.Builder
setDetailedErrorCode(Integer detailedErrorCode)
Sets the detailed error code.
MediaError.Builder
setReason(String reason)
Sets the error reason.
MediaError.Builder
setType(String type)
Sets the type of the media error.

Inherited Method Summary

Public Constructors

public MediaError.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.