Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageCache

Hierarchy

Index

Constructors

constructor

Properties

Private _isViewBase

_isViewBase: boolean

maxRequests

maxRequests: number

placeholder

placeholder: ImageSource

Static downloadErrorEvent

downloadErrorEvent: string

Static downloadedEvent

downloadedEvent: string

Static propertyChangeEvent

propertyChangeEvent: string

Methods

Private _createPropertyChangeData

Private _downloadCore

  • Parameters

    Returns any

Private _emit

  • _emit(eventNames: string): any
  • Parameters

    • eventNames: string

    Returns any

Private _onDownloadCompleted

  • _onDownloadCompleted(key: string, image: any): any
  • Parameters

    • key: string
    • image: any

    Returns any

Private _onDownloadError

  • _onDownloadError(key: string, err: Error): any
  • Parameters

    • key: string
    • err: Error

    Returns any

addEventListener

  • addEventListener(eventNames: string, callback: function, thisArg?: any): any
  • Parameters

    • eventNames: string
    • callback: function
    • Optional thisArg: any

    Returns any

clear

  • clear(): void
  • Returns void

disableDownload

  • disableDownload(): void
  • Returns void

enableDownload

  • enableDownload(): void
  • Returns void

enqueue

  • Parameters

    Returns any

get

  • get(key: string): any
  • Parameters

    • key: string

    Returns any

hasListeners

  • hasListeners(eventName: string): boolean
  • Parameters

    • eventName: string

    Returns boolean

notify

  • notify<T>(data: T): void
  • Type parameters

    Parameters

    • data: T

    Returns void

notifyPropertyChange

  • notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void
  • Parameters

    • propertyName: string
    • value: any
    • Optional oldValue: any

    Returns void

off

  • off(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

on

  • on(eventNames: string, callback: function, thisArg?: any): any
  • on(event: "downloaded", callback: function, thisArg?: any): any
  • on(event: "downloadError", callback: function, thisArg?: any): any
  • Parameters

    • eventNames: string
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    Returns any

  • Parameters

    • event: "downloadError"
    • callback: function
    • Optional thisArg: any

    Returns any

once

  • once(event: string, callback: function, thisArg?: any): any
  • Parameters

    • event: string
    • callback: function
    • Optional thisArg: any

    Returns any

push

  • Parameters

    Returns any

remove

  • remove(key: string): void
  • Parameters

    • key: string

    Returns void

removeEventListener

  • removeEventListener(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

set

  • set(key: string, image: any): void
  • Parameters

    • key: string
    • image: any

    Returns void

setProperty

  • setProperty(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method