UrlResource
Hierarchy
- FetchResource
- UrlResource
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new instance of
UrlResource
.Parameters
resource: UrlReference
The URL reference.
optionalprogress: ProgressTracker
The progress tracker.
Returns UrlResource
Properties
publicoptionalprogress
The progress tracker.
Accessors
isAsync
Whether this Resource is loaded asynchronously
Returns boolean
name
The name of the referenced file
Returns string
Methods
getURL
Returns string
resolve
Resolves the file contents
Returns Promise<File>
The resolved file.
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference
The file reference to create the Resource for
options: ResourceOptions
Additional options for the Resource
Returns Resource
A new Resource instance
A
Resource
that represents a file available from a URL.