firebase::storage::Listener

This is an abstract class.

#include <listener.h>

Base class used to receive pause and progress events on a running read or write operation.

Summary

Subclasses 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(), StorageReference::GetFile(), StorageReference::PutBytes(), and StorageReference::PutFile(); then OnPaused() will be called whenever the Read or Write operation is paused, and OnProgress() will be called periodically as the transfer makes progress.

Constructors and Destructors

~Listener()
Virtual destructor.

Public functions

OnPaused(Controller *controller)=0
virtual void
The operation was paused.
OnProgress(Controller *controller)=0
virtual void
There has been progress event.

Public functions

OnPaused

virtual void OnPaused(
  Controller *controller
)=0

The operation was paused.

Details
Parameters
controller
A controller that can be used to check the status and make changes to the ongoing operation.

OnProgress

virtual void OnProgress(
  Controller *controller
)=0

There has been progress event.

Details
Parameters
controller
A controller that can be used to check the status and make changes to the ongoing operation.

~Listener

virtual  ~Listener()

Virtual destructor.

Send feedback about...

Need help? Visit our support page.