NetworkRequirement

Network connectivity requirement for a WorkRequest.

Unmetered is honoured on all platforms by the library's pre-execution reachability gate (ReachabilityStatus.isDataMetered == false). On iOS, the OS-level scheduling hint (BGProcessingTaskRequest.requiresNetworkConnectivity) is downgraded to Any (logged once) because BGTaskScheduler has no metered/unmetered concept — but the gate still blocks dispatch until an unmetered connection is available.

Entries

Link copied to clipboard

No network requirement — work runs regardless of connectivity.

Link copied to clipboard

Any active network. Maps to Android CONNECTED / iOS requiresNetworkConnectivity = true.

Link copied to clipboard

Unmetered network (Wi-Fi / Ethernet). Honoured by the reachability gate on all platforms. Android additionally honours this at the OS dispatch level via NetworkType.UNMETERED.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.