public enum TransferNetworkConnectionType extends Enum<TransferNetworkConnectionType>
| Enum Constant and Description |
|---|
ANY
Any connection
|
MOBILE
Mobile only
|
WIFI
Wifi only
|
| Modifier and Type | Method and Description |
|---|---|
static TransferNetworkConnectionType |
getConnectionType(String typeAsString)
Returns the connection type from string
|
static TransferNetworkConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferNetworkConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected abstract boolean |
verify(android.net.NetworkInfo networkInfo) |
public static final TransferNetworkConnectionType ANY
public static final TransferNetworkConnectionType WIFI
public static final TransferNetworkConnectionType MOBILE
public static TransferNetworkConnectionType[] values()
for (TransferNetworkConnectionType c : TransferNetworkConnectionType.values()) System.out.println(c);
public static TransferNetworkConnectionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract boolean verify(android.net.NetworkInfo networkInfo)
public static TransferNetworkConnectionType getConnectionType(String typeAsString)
typeAsString - connection type of the transfer as string.TransferNetworkConnectionTypeCopyright © 2019. All rights reserved.