|Class||public class WebDownloadFinishedEvent|
A QNXStageWebView object dispatches a WebDownloadFinishedEvent object when a download operation has completed.
There is only one type of WebDownloadFinishedEvent:
WebDownloadFinishedEvent.DOWNLOAD_FINISHED: dispatched when a download is done. Cannot be cancelled.
|PlayBook Tablet OS Version: 1.0.6|
|downloadId : uint|
The identifier of the download.
|result : String|
The result of the download.
WebDownloadFinishedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, result:String)
Creates a WebDownloadFinishedEvent object.
[override] Duplicates an instance of an Event subclass.
[override] Returns a string that contains all the properties of the WebDownloadFinishedEvent object.
|DOWNLOAD_FINISHED : String = downloadFinished|
[static] Signals that the download has started.
|RESULT_CANCELLED : String = resultCancelled|
[static] Signals that the download was cancelled.
|RESULT_NETWORK_ERROR : String = resultNetworkError|
[static] Signals that the download was cancelled because a network error occurred.
|RESULT_SUCCESS : String = resultSuccess|
[static] Signals that the download completed successfully.
The 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|
The result of the download.
|public function get result():String|
|public function set result(value:String):void|
|public function WebDownloadFinishedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, result:String)|
|override public function clone():Event|
Duplicates 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
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
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.
|override public function toString():String|
Returns a string that contains all the properties of the
The string is in the following format:
[WebDownloadFinishedEvent type=value bubbles=value
cancelable=value eventPhase=value downloadId=value
|public static const DOWNLOAD_FINISHED:String = downloadFinished|
Signals that the download has started.
|public static const RESULT_CANCELLED:String = resultCancelled|
Signals that the download was cancelled.
|public static const RESULT_NETWORK_ERROR:String = resultNetworkError|
Signals that the download was cancelled because a network error occurred.
|public static const RESULT_SUCCESS:String = resultSuccess|
Signals that the download completed successfully.