| Package | qnx.events |
| Class | public class UnsupportedMimeTypeEvent |
| Inheritance | UnsupportedMimeTypeEvent flash.events.Event |
QNXStageWebView object dispatches an UnsupportedMimeTypeEvent 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 UnsupportedMimeTypeEvent:
UnsupportedMimeTypeEvent.UNSUPPORTED_MIME_TYPE: dispatched after an unknown file type is encountered. This event cannot be cancelled.See also
| Property | Defined By | ||
|---|---|---|---|
| url : String
Returns the URL containing the unknown object. | UnsupportedMimeTypeEvent | ||
| Method | Defined By | ||
|---|---|---|---|
UnsupportedMimeTypeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = null)
Creates a JavaScriptCallbackEvent object. | UnsupportedMimeTypeEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | UnsupportedMimeTypeEvent | ||
toString():String [override]
Returns a String that contains all of the properties of the UnsupportedMimeTypeEvent object. | UnsupportedMimeTypeEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| UNSUPPORTED_MIME_TYPE : String = unsupportedMimeType [static]
Dispatched when an unknown protocol has been requested that could not be handled by
the browser. | UnsupportedMimeTypeEvent | ||
| url | property |
url:StringReturns the URL containing the unknown object.
public function get url():String public function set url(value:String):void| UnsupportedMimeTypeEvent | () | Constructor |
public function UnsupportedMimeTypeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = null)
Creates a JavaScriptCallbackEvent object.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
url:String (default = null) |
| clone | () | method |
override public function clone():EventDuplicates 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.
Event |
| toString | () | method |
override public function toString():String
Returns a String that contains all of the properties of the UnsupportedMimeTypeEvent object.
The String is in the following format:
[UnsupportedMimeTypeEvent type=value bubbles=value
cancelable=value eventPhase=value url=value
String |
| UNSUPPORTED_MIME_TYPE | Constant |
public static const UNSUPPORTED_MIME_TYPE:String = unsupportedMimeTypeDispatched when an unknown protocol has been requested that could not be handled by the browser.