qnx.events.NetworkResourceOpenedEvent

NetworkResourceOpenedEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class NetworkResourceOpenedEvent
InheritanceNetworkResourceOpenedEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a NetworkResourceOpenedEvent object when a network resource is being requested. The URL of the resource is in the url property of the event. This event is only received if the FILTER action was specified in a NetworkResourceRequestedEvent. Cancel to prevent the open.

There is only one type of NetworkResourceOpenedEvent:

  • NetworkResourceOpenedEvent.NETWORK_RESOURCE_OPENED: dispatched when a resource is opened to allow filtering. Can be cancelled.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  message : String
Determines the message for the resource.
NetworkResourceOpenedEvent
  status : int
Determines the http status code for the resource.
NetworkResourceOpenedEvent
  streamId : int
Determines the id of the resource that was opened.
NetworkResourceOpenedEvent

Public Methods

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

Public Constants

 ConstantDefined By
  NETWORK_RESOURCE_OPENED : String = networkResourceOpened
[static] Signals that a network resource is opened.
NetworkResourceOpenedEvent

Property Detail

message


message:String

Determines the message for the resource. May be modified.


Implementation

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

status


status:int

Determines the http status code for the resource. May be modified.


Implementation

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

streamId


streamId:int

Determines the id of the resource that was opened.


Implementation

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

Constructor Detail

NetworkResourceOpenedEvent()


public function NetworkResourceOpenedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, status:int = 0, message:String = null)

Creates an NetworkResourceOpenedEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = true)
streamId:int (default = 0)
status:int (default = 0)
message:String (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 NetworkResourceOpenedEvent object. The string is in the following format:

[NetworkResourceOpenedEvent type=value bubbles=value cancelable=value eventPhase=value url=value

Returns

String

Constant Detail

NETWORK_RESOURCE_OPENED


public static const NETWORK_RESOURCE_OPENED:String = networkResourceOpened

Signals that a network resource is opened. The URL of the resource is in the url property of the event.

Cancel this event to prevent the resource from being loaded.





comments powered by Disqus