Class: Resource

Resource()

The base class of document resources, for example, the images referenced by the document.

Constructor

new Resource()

Invoked by ResourceStorage to create a resource object.
Source:

Classes

Resource

Members

data

Returns the ready-to-use, fully loaded, content of this resource object, a Blob or a File.

IMPORTANT: may return null in case the ResourceStorage has no way to actually load this resource. without prompting the user to do so. This is for example the case of local files.

Source:

uri

Returns the absolute URI of this resource object.
Source:

Methods

toJSON()

Returns a JSON representation of this resource object which is only useful when testing and debugging.
Source:

toString()

Returns a string representation of this resource object which is only useful when testing and debugging.
Source: