qnx.events.WebDownloadStartedEvent

WebDownloadStartedEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class WebDownloadStartedEvent
InheritanceWebDownloadStartedEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a WebDownloadStartedEvent object when a download operation has started.

There is only one type of WebDownloadStartedEvent:

  • WebDownloadStartedEvent.DOWNLOAD_STARTED: dispatched when a download is started. Cannot be cancelled.


Class information:
PlayBook Tablet OS Version:   1.0.6

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  downloadId : uint
The identifier of the download.
WebDownloadStartedEvent
  filename : String
The filename of the file is being downloaded.
WebDownloadStartedEvent
  url : String
The URL where the file is being downloaded from.
WebDownloadStartedEvent

Public Methods

 MethodDefined By
  
WebDownloadStartedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, url:String, filename:String)
Creates a WebDownloadStartedEvent object.
WebDownloadStartedEvent
  
clone():Event
[override] Duplicates an instance of an Event subclass.
WebDownloadStartedEvent
  
toString():String
[override] Returns a string that contains all the properties of the WebDownloadStartedEvent object.
WebDownloadStartedEvent

Public Constants

 ConstantDefined By
  DOWNLOAD_STARTED : String = downloadStarted
[static] Signals that the download has started.
WebDownloadStartedEvent

Property Detail

downloadId


downloadId:uint

The identifier of the download. Used to refer to this download in future events and in API calls.


Implementation

public function get downloadId():uint
public function set downloadId(value:uint):void

filename


filename:String

The filename of the file is being downloaded.


Implementation

public function get filename():String
public function set filename(value:String):void

url


url:String

The URL where the file is being downloaded from.


Implementation

public function get url():String
public function set url(value:String):void

Constructor Detail

WebDownloadStartedEvent()


public function WebDownloadStartedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, downloadId:uint = 0, url:String, filename:String)

Creates a WebDownloadStartedEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)
downloadId:uint (default = 0)
url:String
filename:String

Method Detail

clone()


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

Returns

Event

toString()


override public function toString():String

Returns a string that contains all the properties of the WebDownloadStartedEvent object. The string is in the following format:

[WebDownloadStartedEvent type=value bubbles=value cancelable=value eventPhase=value downloadId=value url=value filename=value

Returns

String

Constant Detail

DOWNLOAD_STARTED


public static const DOWNLOAD_STARTED:String = downloadStarted

Signals that the download has started.