[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[],null,["# firebase::storage::Listener Class Reference\n\nfirebase::storage::Listener\n===========================\n\n\n**This is an abstract class.**\n\n\n`#include \u003clistener.h\u003e`\n\nBase class used to receive pause and progress events on a running read or write operation.\n\nSummary\n-------\n\nSubclasses of this listener class can be used to receive events about data transfer progress a location. Attach the listener to a location using [StorageReference::GetBytes()](/docs/reference/cpp/class/firebase/storage/storage-reference#classfirebase_1_1storage_1_1_storage_reference_1a900b03399d3d879771d241cd70d455ff), [StorageReference::GetFile()](/docs/reference/cpp/class/firebase/storage/storage-reference#classfirebase_1_1storage_1_1_storage_reference_1a2909f324048c6e74c11d699b7c33fb9e), [StorageReference::PutBytes()](/docs/reference/cpp/class/firebase/storage/storage-reference#classfirebase_1_1storage_1_1_storage_reference_1af31e70df99a05baec43a785ccffa78c0), and [StorageReference::PutFile()](/docs/reference/cpp/class/firebase/storage/storage-reference#classfirebase_1_1storage_1_1_storage_reference_1aaea029ebb63c744f6f6c1623e25af4f5); then [OnPaused()](/docs/reference/cpp/class/firebase/storage/listener#classfirebase_1_1storage_1_1_listener_1a002fd09bad9d749588407387bc7a0527) will be called whenever the Read or Write operation is paused, and [OnProgress()](/docs/reference/cpp/class/firebase/storage/listener#classfirebase_1_1storage_1_1_listener_1a3049e5cceb71b018b34d9170e4948fef) will be called periodically as the transfer makes progress.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Listener](#classfirebase_1_1storage_1_1_listener_1aaf899da3515aaf98a7904aab8f192d0b)`()` Constructor. ||\n| [~Listener](#classfirebase_1_1storage_1_1_listener_1a470eaf355a19303357da7472e9eb05a5)`()` Virtual destructor. ||\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|\n| [OnPaused](#classfirebase_1_1storage_1_1_listener_1a002fd09bad9d749588407387bc7a0527)`(`[Controller](/docs/reference/cpp/class/firebase/storage/controller#classfirebase_1_1storage_1_1_controller)` *controller)=0` | `virtual void` The operation was paused. |\n| [OnProgress](#classfirebase_1_1storage_1_1_listener_1a3049e5cceb71b018b34d9170e4948fef)`(`[Controller](/docs/reference/cpp/class/firebase/storage/controller#classfirebase_1_1storage_1_1_controller)` *controller)=0` | `virtual void` There has been progress event. |\n\nPublic functions\n----------------\n\n### Listener\n\n```c++\n Listener()\n``` \nConstructor. \n\n### OnPaused\n\n```c++\nvirtual void OnPaused(\n Controller *controller\n)=0\n``` \nThe operation was paused.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------|----------------------------------------------------------------------------------------------| | `controller` | A controller that can be used to check the status and make changes to the ongoing operation. | |\n\n### OnProgress\n\n```c++\nvirtual void OnProgress(\n Controller *controller\n)=0\n``` \nThere has been progress event.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------|----------------------------------------------------------------------------------------------| | `controller` | A controller that can be used to check the status and make changes to the ongoing operation. | |\n\n### \\~Listener\n\n```c++\nvirtual ~Listener()\n``` \nVirtual destructor."]]