NetworkType

public final enum NetworkType
extends Enum<NetworkType>

java.lang.Object
   ↳ java.lang.Enum<androidx.work.NetworkType>
     ↳ androidx.work.NetworkType


The type of network required by a unit of 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

NetworkType CONNECTED

Any working network connection is required for this work.

METERED

NetworkType METERED

A metered network connection is required for this work.

NOT_REQUIRED

NetworkType NOT_REQUIRED

A network is not required for this work.

NOT_ROAMING

NetworkType NOT_ROAMING

A non-roaming network connection is required for this work.

UNMETERED

NetworkType UNMETERED

An unmetered network connection is required for this work.

Public methods

valueOf

NetworkType valueOf (String name)

Parameters
name String

Returns
NetworkType

values

NetworkType[] values ()

Returns
NetworkType[]