Package io.objectbox.sync
Class ConnectivityMonitor
java.lang.Object
io.objectbox.sync.ConnectivityMonitor
Used by
SyncClient to observe connectivity changes.
Implementations are provided by a platform.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidNotifies the observer that a connection is available.voidCalled right after the observer was removed.voidCalled right after the observer was set.(package private) void(package private) voidsetObserver(SyncClient syncClient)
-
Field Details
-
syncClient
-
-
Constructor Details
-
ConnectivityMonitor
public ConnectivityMonitor()
-
-
Method Details
-
setObserver
-
removeObserver
void removeObserver() -
onObserverSet
public void onObserverSet()Called right after the observer was set. -
onObserverRemoved
public void onObserverRemoved()Called right after the observer was removed. -
notifyConnectionAvailable
public final void notifyConnectionAvailable()Notifies the observer that a connection is available. Implementers should call this once a working network connection is available.
-