Preparing search index...
The search index is not available
MobX downloader
MobX downloader
DownloadTask
Class DownloadTask
Abstract
Hierarchy (
View Summary
)
DownloadTask
HTTPDownloadTask
Implements
Partial
<
TransferProgress
>
Index
Constructors
constructor
Properties
client
stream?
Accessors
executing
fs
Handle
id
loaded
loaded
Size
name
options
path
percent
total
total
Size
Methods
destroy
load
Stream
pause
save
Meta
start
toJSON
name
Of
Constructors
constructor
new
DownloadTask
(
path
:
string
,
name
?:
string
)
:
DownloadTask
Parameters
path
:
string
name
:
string
= ...
Returns
DownloadTask
Properties
Abstract
client
client
:
Pick
<
HTTPClient
<
Context
>
,
"download"
>
Optional
stream
stream
?:
ReadableStream
<
Partial
<
TransferProgress
>
>
Accessors
executing
executing
:
any
fs
Handle
fsHandle
:
any
id
id
:
any
loaded
loaded
:
any
MDN Reference
loaded
Size
get
loadedSize
()
:
ByteSize
Returns
ByteSize
name
name
:
any
options
options
:
any
path
path
:
any
percent
percent
:
any
total
total
:
any
MDN Reference
total
Size
get
totalSize
()
:
ByteSize
Returns
ByteSize
Methods
destroy
destroy
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Abstract
load
Stream
loadStream
(
options
?:
DownloadOptions
)
:
AsyncGenerator
<
Partial
<
TransferProgress
>
>
Parameters
Optional
options
:
DownloadOptions
Returns
AsyncGenerator
<
Partial
<
TransferProgress
>
>
pause
pause
()
:
Promise
<
void
>
Returns
Promise
<
void
>
save
Meta
saveMeta
(
data
?:
Partial
<
TransferProgress
>
)
:
Partial
<
TransferProgress
>
Parameters
data
:
Partial
<
TransferProgress
>
= {}
Returns
Partial
<
TransferProgress
>
start
start
(
options
?:
DownloadOptions
,
)
:
Promise
<
ReadableStream
<
Partial
<
TransferProgress
>
>
>
Parameters
options
:
DownloadOptions
= ...
Returns
Promise
<
ReadableStream
<
Partial
<
TransferProgress
>
>
>
toJSON
toJSON
()
:
{
fsHandle
:
FileSystemHandle
;
id
:
string
;
loaded
:
number
;
name
:
string
;
options
:
DownloadOptions
;
path
:
string
;
percent
:
number
;
total
:
number
;
}
Returns
{
fsHandle
:
FileSystemHandle
;
id
:
string
;
loaded
:
number
;
name
:
string
;
options
:
DownloadOptions
;
path
:
string
;
percent
:
number
;
total
:
number
;
}
Static
name
Of
nameOf
(
URI
:
string
)
:
string
Parameters
URI
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
stream
Accessors
executing
fs
Handle
id
loaded
loaded
Size
name
options
path
percent
total
total
Size
Methods
destroy
load
Stream
pause
save
Meta
start
toJSON
name
Of
MobX downloader
Loading...
MDN Reference