NetworkType
public
final
enum
NetworkType
extends Enum<NetworkType>
java.lang.Object | ||
↳ | java.lang.Enum<androidx.work.NetworkType> | |
↳ | androidx.work.NetworkType |
An enumeration of various network types that can be used as Constraints
for work.
Summary
Enum values | |
---|---|
NetworkType |
CONNECTED
Any working network connection is required for this work. |
NetworkType |
METERED
A metered network connection is required for this work. |
NetworkType |
NOT_REQUIRED
A network is not required for this work. |
NetworkType |
NOT_ROAMING
A non-roaming network connection is required for this work. |
NetworkType |
UNMETERED
An unmetered network connection is required for this work. |
Public methods | |
---|---|
static
NetworkType
|
valueOf(String name)
|
static
final
NetworkType[]
|
values()
|
Inherited methods | |
---|---|
Enum values
CONNECTED
public static final NetworkType CONNECTED
Any working network connection is required for this work.
METERED
public static final NetworkType METERED
A metered network connection is required for this work.
NOT_ROAMING
public static final NetworkType NOT_ROAMING
A non-roaming network connection is required for this work.
UNMETERED
public static final NetworkType UNMETERED
An unmetered network connection is required for this work.
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.