|
FoxitPDFSDKforWeb
8.2.0
Foxit PDF SDK for Web
|
The TaskProgress interface defines a process manager. More...
Public Member Functions | |
| void | cancel () |
| Cancel task. More... | |
| number | getCurrentProgress () |
| Get Progress. More... | |
| onProgress (callback:(this:TaskProgress< T >, data:T)=> void) | |
| Register a callback that is used to get data when the progress is updated. More... | |
The TaskProgress interface defines a process manager.
| void TaskProgress::cancel | ( | ) |
Cancel task.
| number TaskProgress::getCurrentProgress | ( | ) |
Get Progress.
| TaskProgress::onProgress | ( | callback:(this:TaskProgress< T >, data:T) | , |
| void | |||
| ) |
Register a callback that is used to get data when the progress is updated.
| {function} | callback (this: TaskProgress<T>, data: T) => void (this, data) => { console.log(data); } |