Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XhrLoadStrategy

Hierarchy

Index

Type aliases

Static OnCompleteSignal

OnCompleteSignal: (type: ResourceType, data: any) => void

Type declaration

Static OnErrorSignal

OnErrorSignal: (errMessage: string) => void

Type declaration

    • (errMessage: string): void
    • Parameters

      • errMessage: string

      Returns void

Static OnProgressSignal

OnProgressSignal: (percent: number) => void

Type declaration

    • (percent: number): void
    • Parameters

      • percent: number

      Returns void

Constructors

constructor

Properties

config

onComplete

onComplete: Signal<OnCompleteSignal> = new Signal<AbstractLoadStrategy.OnCompleteSignal>()

Dispatched once this resource has loaded, if there was an error it will be in the error property.

onError

onError: Signal<OnErrorSignal> = new Signal<AbstractLoadStrategy.OnErrorSignal>()

Dispatched when the resource fails to load.

onProgress

onProgress: Signal<OnProgressSignal> = new Signal<AbstractLoadStrategy.OnProgressSignal>()

Dispatched each time progress of this resource load updates. Not all resources types and loader systems can support this event so sometimes it may not be available. If the resource is being loaded on a modern browser, using XHR, and the remote server properly sets Content-Length headers, then this will be available.

Static ResponseType

ResponseType: XhrResponseType = XhrResponseType

Methods

abort

  • abort(): void

load

  • load(): void

Static setExtensionXhrType

Generated using TypeDoc