public final class ConnectivityPredicate
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected static int[] |
appendUnknownNetworkTypeToTypes(int[] types)
Returns network types from the input with additional unknown type,
what helps during connections filtering when device
is being disconnected from a specific network
|
static <any> |
hasState(android.net.NetworkInfo.State... states)
Filter, which returns true if at least one given state occurred
|
static <any> |
hasType(int... types)
Filter, which returns true if at least one given type occurred
|
public static <any> hasState(android.net.NetworkInfo.State... states)
states - NetworkInfo.State, which can have one or more statespublic static <any> hasType(int... types)
types - int, which can have one or more typesprotected static int[] appendUnknownNetworkTypeToTypes(int[] types)
types - of the network as an array of ints