qnx.events.UnknownProtocolEvent

UnknownProtocolEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class UnknownProtocolEvent
InheritanceUnknownProtocolEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a UnknownProtocolEvent object when an unknown protocol has been requested that could not be handled by networking. The url property of the event indicates the target URL.

There is only one type of UnknownProtocolEvent:

  • UnknownProtocolEvent.UNKNOWN_PROTOCOL: dispatched after an unknown protocol is encountered.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  streamId : int
Returns the stream ID that is associated with this resource.
UnknownProtocolEvent
  url : String
Returns the URL containing the unknown protocol.
UnknownProtocolEvent

Public Methods

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

Public Constants

 ConstantDefined By
  UNKNOWN_PROTOCOL : String = unknownProtocol
[static] Dispatched when an unknown protocol has been requested that could not be handled by networking.
UnknownProtocolEvent

Property Detail

streamId


streamId:int

Returns the stream ID that is associated with this resource.


Implementation

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

url


url:String

Returns the URL containing the unknown protocol.


Implementation

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

Constructor Detail

UnknownProtocolEvent()


public function UnknownProtocolEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = null, streamId:int = 0)

Creates a UnknownProtocolEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)
url:String (default = null)
streamId:int (default = 0)

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

The String has the following format:

[UnknownProtocolEvent type=value bubbles=value cancelable=value eventPhase=value url=value streamId=value

Returns

String

Constant Detail

UNKNOWN_PROTOCOL


public static const UNKNOWN_PROTOCOL:String = unknownProtocol

Dispatched when an unknown protocol has been requested that could not be handled by networking. The url property of the event indicates the target URL. The streamId property indicates the stream.

Cancelling this event allows the stream to be filtered using the notifyResourcefunctions. Otherwise, the resource load operation will fail.





comments powered by Disqus