Package io.objectbox.sync
Class ConnectivityMonitor
- java.lang.Object
-
- io.objectbox.sync.ConnectivityMonitor
-
public abstract class ConnectivityMonitor extends java.lang.Object
Used bySyncClient
to observe connectivity changes.Implementations are provided by a
platform
.
-
-
Constructor Summary
Constructors Constructor Description ConnectivityMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyConnectionAvailable()
Notifies the observer that a connection is available.void
onObserverRemoved()
Called right after the observer was removed.void
onObserverSet()
Called right after the observer was set.
-
-
-
Method Detail
-
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.
-
-