public class AndroidConnectivityObserver extends Object implements NetworkConnectivityManager.Observer
Constructor and Description |
---|
AndroidConnectivityObserver(NetworkConnectivityManager connectivityManager,
Fn.Provider<C4Replicator> replFactory) |
Modifier and Type | Method and Description |
---|---|
void |
handleOffline(AbstractReplicator.ActivityLevel prevLevel,
boolean nowOnline) |
void |
onConnectivityChanged(boolean connected) |
public AndroidConnectivityObserver(@NonNull NetworkConnectivityManager connectivityManager, @NonNull Fn.Provider<C4Replicator> replFactory)
public void onConnectivityChanged(boolean connected)
onConnectivityChanged
in interface NetworkConnectivityManager.Observer
public void handleOffline(@NonNull AbstractReplicator.ActivityLevel prevLevel, boolean nowOnline)