Padloc Logo Docs & Resources

Class: RequestProgress

transport.RequestProgress

Hierarchy

Constructors

constructor

new RequestProgress()

Inherited from

EventEmitter.constructor

Properties

_downloadProgress

Private _downloadProgress: Progress

Defined in

core/src/transport.ts:147


_error

Private Optional _error: Error

Defined in

core/src/transport.ts:149


_rejectCompleted

Private _rejectCompleted: (err: Error) => void

Type declaration

▸ (err): void

Parameters
Name Type
err Error
Returns

void

Defined in

core/src/transport.ts:152


_resolveCompleted

Private _resolveCompleted: () => void

Type declaration

▸ (): void

Returns

void

Defined in

core/src/transport.ts:151


_uploadProgress

Private _uploadProgress: Progress

Defined in

core/src/transport.ts:146


completed

completed: Promise<void>

Defined in

core/src/transport.ts:101

Accessors

downloadProgress

get downloadProgress(): Progress

Returns

Progress

Defined in

core/src/transport.ts:116

set downloadProgress(progress): void

Parameters

Name Type
progress Progress

Returns

void

Defined in

core/src/transport.ts:120


error

get error(): undefined | Error

Returns

undefined | Error

Defined in

core/src/transport.ts:142

set error(error): void

Parameters

Name Type
error undefined | Error

Returns

void

Defined in

core/src/transport.ts:133


progress

get progress(): Object

Returns

Object

Name Type
loaded number
total number

Defined in

core/src/transport.ts:126


uploadProgress

get uploadProgress(): Progress

Returns

Progress

Defined in

core/src/transport.ts:106

set uploadProgress(progress): void

Parameters

Name Type
progress Progress

Returns

void

Defined in

core/src/transport.ts:110

Methods

addEventListener

addEventListener(eventName, listener): void

Parameters

Name Type
eventName string
listener Listener

Returns

void

Inherited from

EventEmitter.addEventListener

Defined in

core/src/event-target.ts:16


complete

complete(): void

Returns

void

Defined in

core/src/transport.ts:154


dispatch

dispatch(type, detail?): void

Parameters

Name Type
type string
detail? any

Returns

void

Inherited from

EventEmitter.dispatch

Defined in

core/src/event-target.ts:43


dispatchEvent

dispatchEvent(e): void

Parameters

Name Type
e Event

Returns

void

Inherited from

EventEmitter.dispatchEvent

Defined in

core/src/event-target.ts:30


removeEventListener

removeEventListener(eventName, listener): void

Parameters

Name Type
eventName string
listener Listener

Returns

void

Inherited from

EventEmitter.removeEventListener

Defined in

core/src/event-target.ts:23