Skip to content

NetworkType

Android only Network connectivity constraint for use with requiredNetworkType.

NETWORK_TYPE_ANY

NetworkType.ANY

Requires any active network connection.

NETWORK_TYPE_CELLULAR

NetworkType.CELLULAR

Requires a cellular (mobile data) network connection.

NETWORK_TYPE_NONE

NetworkType.NONE

No network constraint — the task will run regardless of connectivity. This is the default.

NETWORK_TYPE_NOT_ROAMING

NetworkType.NOT_ROAMING

Requires a non-roaming network connection.

NETWORK_TYPE_UNMETERED

NetworkType.UNMETERED

Requires an unmetered network connection (e.g. Wi-Fi).