Skip to main content

abstractFetchResource

A base class for Resources that require fetching data from a remote URL.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Creates a new instance of FetchResource.


    Parameters

    • optionalprogress: ProgressTracker

      The progress tracker.

    Returns FetchResource

Properties

publicoptionalprogress

progress?: ProgressTracker

The progress tracker.

Accessors

isAsync

  • get isAsync(): boolean
  • Whether this Resource is loaded asynchronously


    Returns boolean

name

  • get name(): string
  • The name of the referenced file


    Returns string

Methods

resolve

  • resolve(): Promise<File>
  • Resolves the file contents


    Returns Promise<File>

    The resolved file.

setPlayground

  • Parameters

    Returns void

staticcreate

  • Creates a new Resource based on the given file reference


    Parameters

    Returns Resource

    A new Resource instance