Jump to top

TaskState

interface

A collection of properties that indicates the current tasks state.

An event subscription is created via StorageTask.on().

firebase.storage.TaskEvent;

Properties

CANCELLED

</>

Task has been cancelled by the user.

CANCELLED: "cancelled";

ERROR

</>

An Error occurred, see TaskSnapshot.error for details.

ERROR: "error";

PAUSED

</>

Task has been paused. Resume the task via StorageTask.resume().

PAUSED: "paused";

RUNNING

</>

Task is running. Pause the task via StorageTask.pause()

RUNNING: "running";

SUCCESS

</>

Task has completed successfully.

SUCCESS: "success";