Emitted when a download was finished.

interface DownloadFinishedEvent {
    downloadTime: number;
    httpStatus: number;
    isSuccess: boolean;
    lastRedirectLocation?: String;
    name: string;
    requestType: HttpRequestType;
    size: number;
    timestamp: number;
    url: String;
}

Hierarchy (view full)

  • Event
    • DownloadFinishedEvent

Properties

downloadTime: number

The time needed to finish the request, in seconds.

httpStatus: number

The HTTP status code of the request. If opening the connection failed, a value of 0 is returned.

isSuccess: boolean

If the download was successful.

lastRedirectLocation?: String

The last redirect location, or null if no redirect happened.

name: string

This event name as it is on the native side.

requestType: HttpRequestType

Which type of request this was.

size: number

The size of the downloaded data, in bytes.

timestamp: number

The UNIX timestamp in which this event happened.

url: String

The URL of the request.