class MKPDownloadFinishedEvent: MKPlayerEvent<Any?>
Fields
| Name | Description |
|---|---|
val downloadType: HttpRequestType
|
Please refer com.mediakind.mkplayer.event.data.MKPDownloadFinishedEvent.HttpRequestType |
val url: String
|
the url of HTTP request |
val lastRedirectLocation: String?
|
has value if redirection has happened else null if no redirect happened |
val downloadTime: Double
|
the time needed to finish the request, in seconds. |
val httpStatus: Int
|
HTTP status code of the request. If opening the connection failed, a value of 0 is returned. |
val size: Long
|
size of the downloaded data in bytes of request type |
val success: Boolean
|
returns true if download was successful |
Constructors
<init>
constructor(downloadType: HttpRequestType, url: String, lastRedirectLocation: String?, downloadTime: Double, httpStatus: Int, size: Long, success: Boolean)
Event which is sent when a download was finished. See com.mediakind.mkplayer.event.listeners.OnMKDownloadFinishedListener.
Parameters
| Name | Description |
|---|---|
downloadType: HttpRequestType
|
Please refer com.mediakind.mkplayer.event.data.MKPDownloadFinishedEvent.HttpRequestType |
url: String
|
the url of HTTP request |
lastRedirectLocation: String?
|
has value if redirection has happened else null if no redirect happened |
downloadTime: Double
|
the time needed to finish the request, in seconds. |
httpStatus: Int
|
HTTP status code of the request. If opening the connection failed, a value of 0 is returned. |
size: Long
|
size of the downloaded data in bytes of request type |
success: Boolean
|
returns true if download was successful |
Event which is sent when a download was finished. See com.mediakind.mkplayer.event.listeners.OnMKDownloadFinishedListener.