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:
PlayBook Tablet OS Version:   1.0.6

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.utils.ImageCache

Constant Detail

IMAGE_LOAD_ERROR


public static const IMAGE_LOAD_ERROR:String = imageLoadError

Dispatched when an image has failed to load.

IMAGE_LOADED


public static const IMAGE_LOADED:String = imageLoaded

Dispatched when an image has loaded.