Ditto 4.7.2-rc.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | 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
 

Protected Attributes

bool stopped
 Track if the Observer has already been stopped so we don't stop it twice when destroying the object.
 

Detailed Description

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