1#ifndef _DITTO_OBSERVER_
2#define _DITTO_OBSERVER_
16 virtual void on_stop() = 0;
An observation token returned by any observation API in the Ditto SDK. Retain this object to continue...
Definition Observer.hpp:11
void stop()
Stops the observation and cleans up all associated resources.
Definition Observer.cpp:10
bool is_stopped()
Returns true is the Observer was stopped.
Definition Observer.cpp:17
Observer()
Constructs a new Observer.
Definition Observer.cpp:4
bool stopped
Track if the Observer has already been stopped so we don't stop it twice when destroying the object.
Definition Observer.hpp:23
~Observer()
Destroy the Abstract Observer object canceling the observer if it hasn't been done in stop
Definition Observer.cpp:8