| Package | qnx.events |
| Class | public class WebDownloadFinishedEvent |
| Inheritance | WebDownloadFinishedEvent flash.events.Event |
There is only one type of WebDownloadFinishedEvent:
WebDownloadFinishedEvent.DOWNLOAD_FINISHED: dispatched when a download is done. Cannot be cancelled.See also
| Property | Defined By | ||
|---|---|---|---|
| downloadId : uint
The identifier of the download. | WebDownloadFinishedEvent | ||
| result : String
The result of the download. | WebDownloadFinishedEvent | ||
| Method | Defined By | ||
|---|---|---|---|
WebDownloadFinishedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, result:String)
Creates a WebDownloadFinishedEvent object. | WebDownloadFinishedEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | WebDownloadFinishedEvent | ||
toString():String [override]
Returns a string that contains all the properties of the WebDownloadFinishedEvent object. | WebDownloadFinishedEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| DOWNLOAD_FINISHED : String = downloadFinished [static]
Signals that the download has started. | WebDownloadFinishedEvent | ||
| RESULT_CANCELLED : String = resultCancelled [static]
Signals that the download was cancelled. | WebDownloadFinishedEvent | ||
| RESULT_NETWORK_ERROR : String = resultNetworkError [static]
Signals that the download was cancelled because a network error occurred. | WebDownloadFinishedEvent | ||
| RESULT_SUCCESS : String = resultSuccess [static]
Signals that the download completed successfully. | WebDownloadFinishedEvent | ||
| downloadId | property |
downloadId:uintThe identifier of the download. Used to refer to this download in future events and in API calls.
public function get downloadId():uint public function set downloadId(value:uint):void| result | property |
result:StringThe result of the download.
public function get result():String public function set result(value:String):void| WebDownloadFinishedEvent | () | Constructor |
public function WebDownloadFinishedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, result:String)
Creates a WebDownloadFinishedEvent object.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
downloadId:uint (default = 0) | |
result:String |
| clone | () | method |
override public function clone():EventDuplicates an instance of an Event subclass.
Returns a new Event object that is a copy of the original instance of the Event object.
You do not normally call clone(); the EventDispatcher class calls it automatically
when you redispatch an event—that is, when you call dispatchEvent(event) from a handler
that is handling event.
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
inherited Event.clone() method in order for it to duplicate the
properties of your custom class. If you do not set all the properties that you add
in your event subclass, those properties will not have the correct values when listeners
handle the redispatched event.
Event |
| toString | () | method |
override public function toString():String
Returns a string that contains all the properties of the WebDownloadFinishedEvent object.
The string is in the following format:
[WebDownloadFinishedEvent type=value bubbles=value
cancelable=value eventPhase=value downloadId=value
result=value
String |
| DOWNLOAD_FINISHED | Constant |
public static const DOWNLOAD_FINISHED:String = downloadFinishedSignals that the download has started.
| RESULT_CANCELLED | Constant |
public static const RESULT_CANCELLED:String = resultCancelledSignals that the download was cancelled.
| RESULT_NETWORK_ERROR | Constant |
public static const RESULT_NETWORK_ERROR:String = resultNetworkErrorSignals that the download was cancelled because a network error occurred.
| RESULT_SUCCESS | Constant |
public static const RESULT_SUCCESS:String = resultSuccessSignals that the download completed successfully.