public class AndroidConnectivityManager extends Object implements NetworkConnectivityManager
NetworkConnectivityManager.Observer
Constructor and Description |
---|
AndroidConnectivityManager(int androidVersion,
Fn.Runner runner) |
Modifier and Type | Method and Description |
---|---|
void |
connectivityChanged(boolean connected) |
boolean |
isConnected() |
boolean |
isRunning() |
void |
registerObserver(NetworkConnectivityManager.Observer observer) |
void |
unregisterObserver(NetworkConnectivityManager.Observer observer) |
public AndroidConnectivityManager(int androidVersion, @NonNull Fn.Runner runner)
public boolean isConnected()
isConnected
in interface NetworkConnectivityManager
public void registerObserver(@NonNull NetworkConnectivityManager.Observer observer)
registerObserver
in interface NetworkConnectivityManager
public void unregisterObserver(@NonNull NetworkConnectivityManager.Observer observer)
unregisterObserver
in interface NetworkConnectivityManager
public void connectivityChanged(boolean connected)
public boolean isRunning()