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  TEMPORARILY_UNMETERED

A temporarily unmetered Network. 

NetworkType  UNMETERED

An unmetered network connection is required for this work. 

Public methods

static NetworkType valueOf(String name)
static final NetworkType[] values()

Inherited methods