NetworkType¶
Android only Network connectivity constraint for use with requiredNetworkType.
NETWORK_TYPE_ANY¶
static NETWORK_TYPE_ANY: NetworkType = 1;
Requires any active network connection.
NETWORK_TYPE_CELLULAR¶
static NETWORK_TYPE_CELLULAR: NetworkType = 2;
Requires a cellular (mobile data) network connection.
NETWORK_TYPE_NONE¶
static NETWORK_TYPE_NONE: NetworkType = 0;
No network constraint — the task will run regardless of connectivity. This is the default.
NETWORK_TYPE_NOT_ROAMING¶
static NETWORK_TYPE_NOT_ROAMING: NetworkType = 4;
Requires a non-roaming network connection.
NETWORK_TYPE_UNMETERED¶
static NETWORK_TYPE_UNMETERED: NetworkType = 3;
Requires an unmetered network connection (e.g. Wi-Fi).