Class AndroidConnectivityObserver
- java.lang.Object
-
- com.couchbase.lite.internal.replicator.AndroidConnectivityObserver
-
- All Implemented Interfaces:
NetworkConnectivityManager.Observer
public class AndroidConnectivityObserver extends Object implements NetworkConnectivityManager.Observer
-
-
Constructor Summary
Constructors Constructor Description AndroidConnectivityObserver(NetworkConnectivityManager connectivityManager, Fn.Provider<C4Replicator> replFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleOffline(ReplicatorActivityLevel prevLevel, boolean nowOnline)
void
onConnectivityChanged(boolean connected)
-
-
-
Constructor Detail
-
AndroidConnectivityObserver
public AndroidConnectivityObserver(@NonNull NetworkConnectivityManager connectivityManager, @NonNull Fn.Provider<C4Replicator> replFactory)
-
-
Method Detail
-
onConnectivityChanged
public void onConnectivityChanged(boolean connected)
- Specified by:
onConnectivityChanged
in interfaceNetworkConnectivityManager.Observer
-
handleOffline
public void handleOffline(@NonNull ReplicatorActivityLevel prevLevel, boolean nowOnline)
-
-