Ditto 4.5.2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
ditto::Observer Class Referenceabstract

An observation token returned by any observation API in the Ditto SDK. Retain this object to continue receiving updates. More...

#include <Observer.hpp>

Inheritance diagram for ditto::Observer:
ditto::AttachmentFetcher ditto::AuthenticationStatusObserver ditto::LiveQuery ditto::StoreObserver ditto::Subscription ditto::SyncSubscription

Public Member Functions

void stop ()
 Stops the observation and cleans up all associated resources.
 
bool is_stopped ()
 Returns true is the Observer was stopped.
 

Protected Member Functions

 Observer ()
 Constructs a new Observer.
 
 ~Observer ()
 Destroy the Abstract Observer object canceling the observer if it hasn't been done in stop
 

Detailed Description

An observation token returned by any observation API in the Ditto SDK. Retain this object to continue receiving updates.