qnx.events.WebViewEvent

WebViewEvent

Methods | Constants


Packageqnx.events
Classpublic class WebViewEvent
InheritanceWebViewEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a WebViewEvent object when an asynchronus event occurs.

There are several types of WebViewEvent:

  • WebViewEvent.DOCUMENT_LOADED: dispatched after the document.onload has been fired. Cannot be canceled.
  • WebViewEvent.DOCUMENT_LOAD_COMMITTED: dispatched after the navigation has started away from the previous page. Cannot be canceled.
  • WebViewEvent.DOCUMENT_LOAD_FINISHED: dispatched after the page is fully loaded. Cannot be canceled.
  • WebViewEvent.DOCUMENT_LOAD_FAILED: dispatched when loading fails. Cannot be canceled.
  • WebViewEvent.CREATED: dispatched the QNXStageWebView is created. Cannot be canceled.
  • WebViewEvent.DESTROYED: dispatched after the QNXStageWebView is destroyed. Cannot be canceled.
  • WebViewEvent.JAVA_SCRIPT_INTERRUPTED: dispatched after long running javascript is interrupted. Cannot be canceled.
  • WebViewEvent.FULL_SCREEN_ENTERING: dispatched when a plugin wishes to enter full screen. Can be canceled.
  • WebViewEvent.FULL_SCREEN_ENTER: dispatched after a plugin enters full screen. Cannot be canceled.
  • WebViewEvent.FULL_SCREEN_EXIT: dispatched after a plugin exits full screen. Cannot be canceled.


Class information:
PlayBook Tablet OS Version:   1.0.6

See also

QNXStageWebView



Public Methods

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

Public Constants

 ConstantDefined By
  CREATED : String = created
[static] Dispatched when the QNXStageWebView object is created.
WebViewEvent
  DESTROYED : String = destroyed
[static] Dispatched when the QNXStageWebView object has been destroyed.
WebViewEvent
  DOCUMENT_LOAD_COMMITTED : String = documentLoadCommitted
[static] Dispatched when the application receives a response from the server indicating a location change and page load operation.
WebViewEvent
  DOCUMENT_LOADED : String = documentLoaded
[static] Dispatched when the javascript document.onload event is fired.
WebViewEvent
  DOCUMENT_LOAD_FAILED : String = documentLoadFailed
[static] Dispatched when a document load operation fails.
WebViewEvent
  DOCUMENT_LOAD_FINISHED : String = documentLoadFinished
[static] Dispatched when a document load operation has finished.
WebViewEvent
  FULL_SCREEN_ENTER : String = fullScreenEnter
[static] Dispatched when the browser (or plugin) has entered full screen mode.
WebViewEvent
  FULL_SCREEN_ENTERING : String = fullScreenEntering
[static] Dispatched when the browser (or plugin) is about to enter full screen mode.
WebViewEvent
  FULL_SCREEN_EXIT : String = fullScreenExit
[static] Dispatched when the browser (or plugin) has exited full screen mode.
WebViewEvent
  JAVA_SCRIPT_INTERRUPTED : String = javaScriptInterrupted
[static] Dispatched when a long running JavaScript instance has been interrupted.
WebViewEvent

Constructor Detail

WebViewEvent()


public function WebViewEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates an WebViewEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)

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

[WebViewEvent type=value bubbles=value cancelable=value eventPhase=value location=value reason=value

Returns

String

Constant Detail

CREATED


public static const CREATED:String = created

Dispatched when the QNXStageWebView object is created.

DESTROYED


public static const DESTROYED:String = destroyed

Dispatched when the QNXStageWebView object has been destroyed.

DOCUMENT_LOAD_COMMITTED


public static const DOCUMENT_LOAD_COMMITTED:String = documentLoadCommitted

Dispatched when the application receives a response from the server indicating a location change and page load operation. After this event is fired, you must call back to get back to the old page. Calling stop will interrupt the loading of this page, and will leave the page in its state at the time of the stop call.

DOCUMENT_LOAD_FAILED


public static const DOCUMENT_LOAD_FAILED:String = documentLoadFailed

Dispatched when a document load operation fails.

DOCUMENT_LOAD_FINISHED


public static const DOCUMENT_LOAD_FINISHED:String = documentLoadFinished

Dispatched when a document load operation has finished. This event may never be sent as it is possible for a page to never complete loading.

DOCUMENT_LOADED


public static const DOCUMENT_LOADED:String = documentLoaded

Dispatched when the javascript document.onload event is fired. This event will be fired after a given timeout period expires, even if the qnx.events.WebViewEvent.DOCUMENT_LOAD_FINISHED event is never fired.

FULL_SCREEN_ENTER


public static const FULL_SCREEN_ENTER:String = fullScreenEnter

Dispatched when the browser (or plugin) has entered full screen mode. You may stop any animations or processes that the user does not need to unload the CPU while the application is in fullscreen mode.

FULL_SCREEN_ENTERING


public static const FULL_SCREEN_ENTERING:String = fullScreenEntering

Dispatched when the browser (or plugin) is about to enter full screen mode. Cancel this event to prevent it from entering fullscreen.

FULL_SCREEN_EXIT


public static const FULL_SCREEN_EXIT:String = fullScreenExit

Dispatched when the browser (or plugin) has exited full screen mode.

JAVA_SCRIPT_INTERRUPTED


public static const JAVA_SCRIPT_INTERRUPTED:String = javaScriptInterrupted

Dispatched when a long running JavaScript instance has been interrupted. To increase the timeout, set the javaScriptInterruptTimeout property.