Listens to sync client connection events.
More...
#include <objectbox-sync.hpp>
|
virtual | ~SyncClientConnectionListener ()=default |
|
virtual void | connected () noexcept=0 |
| Called when connection is established (on first connect or after a reconnection). More...
|
|
virtual void | disconnected () noexcept=0 |
| Called when the client is disconnected from the sync server, e.g. due to a network error. Depending on the configuration, the sync client typically tries to reconnect automatically, triggering connected() when successful. More...
|
|
Listens to sync client connection events.
◆ ~SyncClientConnectionListener()
virtual obx::SyncClientConnectionListener::~SyncClientConnectionListener |
( |
| ) |
|
|
virtualdefault |
◆ connected()
virtual void obx::SyncClientConnectionListener::connected |
( |
| ) |
|
|
pure virtualnoexcept |
Called when connection is established (on first connect or after a reconnection).
◆ disconnected()
virtual void obx::SyncClientConnectionListener::disconnected |
( |
| ) |
|
|
pure virtualnoexcept |
Called when the client is disconnected from the sync server, e.g. due to a network error. Depending on the configuration, the sync client typically tries to reconnect automatically, triggering connected()
when successful.