Class AndroidConnectivityManager
- java.lang.Object
-
- com.couchbase.lite.internal.connectivity.AndroidConnectivityManager
-
- All Implemented Interfaces:
NetworkConnectivityManager
public class AndroidConnectivityManager extends Object implements NetworkConnectivityManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.lite.internal.replicator.NetworkConnectivityManager
NetworkConnectivityManager.Observer
-
-
Constructor Summary
Constructors Constructor Description AndroidConnectivityManager(int androidVersion, Fn.Runner runner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectivityChanged(boolean connected)
boolean
isConnected()
boolean
isRunning()
static AndroidConnectivityManager
newInstance()
void
registerObserver(NetworkConnectivityManager.Observer observer)
void
unregisterObserver(NetworkConnectivityManager.Observer observer)
-
-
-
Constructor Detail
-
AndroidConnectivityManager
public AndroidConnectivityManager(int androidVersion, @NonNull Fn.Runner runner)
-
-
Method Detail
-
newInstance
@NonNull public static AndroidConnectivityManager newInstance()
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceNetworkConnectivityManager
-
registerObserver
public void registerObserver(@NonNull NetworkConnectivityManager.Observer observer)
- Specified by:
registerObserver
in interfaceNetworkConnectivityManager
-
unregisterObserver
public void unregisterObserver(@NonNull NetworkConnectivityManager.Observer observer)
- Specified by:
unregisterObserver
in interfaceNetworkConnectivityManager
-
connectivityChanged
public void connectivityChanged(boolean connected)
-
isRunning
public boolean isRunning()
-
-