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 usingStorageReference::GetBytes(),StorageReference::GetFile(),StorageReference::PutBytes(), andStorageReference::PutFile(); thenOnPaused() will be called whenever the Read or Write operation is paused, andOnProgress() will be called periodically as the transfer makes progress.

Constructors and Destructors

Listener()
Constructor.
~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

Listener

Listener()

Constructor.

OnPaused

virtualvoidOnPaused(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

virtualvoidOnProgress(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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-01-23 UTC.