Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageLoader

Hierarchy

  • ImageLoader

Index

Constructors

constructor

  • new ImageLoader(imageSources: Array<string>): ImageLoader

Properties

imageSources

imageSources: Array<string>

maxRetries

maxRetries: number

Methods

dispose

  • dispose(): void

fetchImage

  • fetchImage(source: string, retryCount?: number): Promise<void>

fetchImageBitmap

  • fetchImageBitmap(source: string, retryCount?: number): Promise<void>

getImages

  • getImages(): Object

load

  • load(): Promise<Object>

loadBitmapOrImage

  • loadBitmapOrImage(): Promise<Object>

loadImageBitmaps

  • loadImageBitmaps(): Promise<Object>

ping

  • ping(): Promise<Array<string>>

pingSource

  • pingSource(source: string, retryCount?: number): Promise<string>

setDecodeAfterFetch

  • setDecodeAfterFetch(value: boolean): void

setLoadCallback

  • setLoadCallback(callback: Function): void