NetworkType
class NetworkType
kotlin.Any | ||
↳ | kotlin.Enum<androidx.work.NetworkType> | |
↳ | androidx.work.NetworkType |
An enumeration of various network types that can be used as Constraints
for work.
Summary
Enum values | |
---|---|
Any working network connection is required for this work. |
|
A metered network connection is required for this work. |
|
A network is not required for this work. |
|
A non-roaming network connection is required for this work. |
|
An unmetered network connection is required for this work. |
Enum values
CONNECTED
enum val CONNECTED : NetworkType
Any working network connection is required for this work.
NOT_ROAMING
enum val NOT_ROAMING : NetworkType
A non-roaming network connection is required for this work.
UNMETERED
enum val UNMETERED : NetworkType
An unmetered network connection is required for this work.