qnx.fuse.ui.events.ImageCacheEvent

ImageCacheEvent

Properties | Methods | Constants


Packageqnx.fuse.ui.events
Classpublic class ImageCacheEvent
InheritanceImageCacheEvent Inheritance flash.events.Event

The ImageCacheEvent class provides event functionality related to the caching and loading of images.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc

See also

ImageCache



Public Properties

 PropertyDefined By
  error : IOError
[read-only] Gets the type of error that occurred.
ImageCacheEvent
  url : String
[read-only] Gets the URL to the image that was cached.
ImageCacheEvent

Public Methods

 MethodDefined By
  
ImageCacheEvent(type:String, url_:String, error_:IOError = null)
Creates a new ImageCacheEvent instance given an event type, a URL to the image, and an error type.
ImageCacheEvent

Public Constants

 ConstantDefined By
  IMAGE_LOADED : String = imageLoaded
[static] Dispatched when an image has loaded.
ImageCacheEvent
  IMAGE_LOAD_ERROR : String = imageLoadError
[static] Dispatched when an image has failed to load.
ImageCacheEvent

Property Detail

error


error:IOError  [read-only]

Gets the type of error that occurred.


Implementation

public function get error():IOError

url


url:String  [read-only]

Gets the URL to the image that was cached.


Implementation

public function get url():String

Constructor Detail

ImageCacheEvent()


public function ImageCacheEvent(type:String, url_:String, error_:IOError = null)

Creates a new ImageCacheEvent instance given an event type, a URL to the image, and an error type.

Parameters

type:String — The event type.
url_:String — A URL to the image.
error_:IOError (default = null) — The type of error that occurred. Default is null.

See also

qnx.fuse.ui.utils.ImageCache

Constant Detail

IMAGE_LOAD_ERROR


public static const IMAGE_LOAD_ERROR:String = imageLoadError

Dispatched when an image has failed to load.

The ImageCacheEvent.IMAGE_LOAD_ERROR constant defines the value of the type property of the event object for an imageLoadError event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
errorThe IOError instance thrown while attempting to load the image.
typeImageCacheEvent.IMAGE_LOAD_ERROR
urlThe url that failed to load.

IMAGE_LOADED


public static const IMAGE_LOADED:String = imageLoaded

Dispatched when an image has loaded.

The ImageCacheEvent.IMAGE_LOADED constant defines the value of the type property of the event object for an imageLoaded event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
errorThis property will be null during this event.
typeImageCacheEvent.IMAGE_LOADED
urlThe url that was loaded.





comments powered by Disqus