qnx.events.NetworkResourceDataReceivedEvent

NetworkResourceDataReceivedEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class NetworkResourceDataReceivedEvent
InheritanceNetworkResourceDataReceivedEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a NetworkResourceDataReceivedEvent object when a header for the loading resource has been received and is being procesed. This event is only received if the FILTER action was specified in a NetworkResourceRvquestedEvent. Cancel to prevent the data from being sent or replace the data by setting the data member.

There is only one type of NetworkResourceDataReceivedEvent:

  • NetworkResourceDataReceivedEvent.NETWORK_RESOURCE_DATA_RECEIVED: dispatched when data is about to be sent to the resource loader. Can be cancelled.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  data : ByteArray
The data (or portion thereof) for this resource.
NetworkResourceDataReceivedEvent
  streamId : int
The ID of the resource to be loaded.
NetworkResourceDataReceivedEvent

Public Methods

 MethodDefined By
  
NetworkResourceDataReceivedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, data:ByteArray = null)
Creates a NetworkResourceDataReceivedEvent object.
NetworkResourceDataReceivedEvent
  
clone():Event
[override] Duplicates an instance of an Event subclass.
NetworkResourceDataReceivedEvent
  
toString():String
[override] Returns a string that contains all the properties of the NetworkResourceDataReceivedEvent object.
NetworkResourceDataReceivedEvent

Public Constants

 ConstantDefined By
  NETWORK_RESOURCE_DATA_RECEIVED : String = networkResourceDataReceived
[static] Signals that data has been received.
NetworkResourceDataReceivedEvent

Property Detail

data


data:ByteArray

The data (or portion thereof) for this resource.


Implementation

public function get data():ByteArray
public function set data(value:ByteArray):void

streamId


streamId:int

The ID of the resource to be loaded.


Implementation

public function get streamId():int
public function set streamId(value:int):void

Constructor Detail

NetworkResourceDataReceivedEvent()


public function NetworkResourceDataReceivedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, data:ByteArray = null)

Creates a NetworkResourceDataReceivedEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = true)
streamId:int (default = 0)
data:ByteArray (default = null)

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 NetworkResourceDataReceivedEvent object. The string is in the following format:

[NetworkResourceDataReceivedEvent type=value bubbles=value cancelable=value eventPhase=value streamId=value data=value

Returns

String

Constant Detail

NETWORK_RESOURCE_DATA_RECEIVED


public static const NETWORK_RESOURCE_DATA_RECEIVED:String = networkResourceDataReceived

Signals that data has been received. The data can be modified here.





comments powered by Disqus