public class DefaultConnectivityMonitorFactory extends Object implements ConnectivityMonitorFactory
ConnectivityMonitor
if the application has the android.permission.ACCESS_NETWORK_STATE
permission and a no-op
non functional ConnectivityMonitor
if the app does not have
the required permission.Constructor and Description |
---|
DefaultConnectivityMonitorFactory() |
Modifier and Type | Method and Description |
---|---|
ConnectivityMonitor |
build(Context context,
ConnectivityMonitor.ConnectivityListener listener) |
@NonNull public ConnectivityMonitor build(@NonNull Context context, @NonNull ConnectivityMonitor.ConnectivityListener listener)
build
in interface ConnectivityMonitorFactory