ObjectBox C and C++ API  4.0.3
obx::SyncClientConnectionListener Class Referenceabstract

Listens to sync client connection events. More...

#include <objectbox-sync.hpp>

Inheritance diagram for obx::SyncClientConnectionListener:
Inheritance graph

Public Member Functions

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

Detailed Description

Listens to sync client connection events.

Constructor & Destructor Documentation

◆ ~SyncClientConnectionListener()

virtual obx::SyncClientConnectionListener::~SyncClientConnectionListener ( )
virtualdefault

Member Function Documentation

◆ 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.