Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

error

error: Error | undefined

Any loading or fatal errors that have occurred in the resource

height

height: number | undefined

The height of the media

loaded

loaded: boolean

Determines if the resource is fully loaded

loading

loading: boolean

Determines if the resource is currently loading

unloaded

unloaded: boolean

Determines if the resource has been unloaded and is now invalid

url

url: Url

The location that the media was loaded from. Can be a local resource with file:// scheme

width

width: number | undefined

The width of the media

Methods

unload

  • unload(): Promise<void>
  • Releases the resource. Is reentrant, a released resource can be released again without error. Will possibly set unloaded to true, however, it is not required to.

    Returns Promise<void>