HasProgressListener
Table of Contents
Properties
- $lastPercentage : float
- $lastRemaining : float
- $onProgressCallback : Closure
Methods
- onProgress() : HasProgressListener|MediaExporter
- Setter for the callback.
- applyProgressListenerToFormat() : void
- Only calls the callback if the percentage is below 100 and is different from the previous emitted percentage.
Properties
$lastPercentage
protected
float
$lastPercentage
$lastRemaining
protected
float
$lastRemaining
= 0
$onProgressCallback
protected
Closure
$onProgressCallback
Methods
onProgress()
Setter for the callback.
public
onProgress(Closure $callback) : HasProgressListener|MediaExporter
Parameters
- $callback : Closure
Return values
HasProgressListener|MediaExporterapplyProgressListenerToFormat()
Only calls the callback if the percentage is below 100 and is different from the previous emitted percentage.
private
applyProgressListenerToFormat(EventEmitterInterface $format) : void
Parameters
- $format : EventEmitterInterface