EmulateNetworkConditionsByRuleParameter

@Serializable
data class EmulateNetworkConditionsByRuleParameter(val offline: Boolean? = null, val emulateOfflineServiceWorker: Boolean? = null, val matchedNetworkConditions: List<Network.NetworkConditions>)

Constructors

Link copied to clipboard
constructor(offline: Boolean? = null, emulateOfflineServiceWorker: Boolean? = null, matchedNetworkConditions: List<Network.NetworkConditions>)

Properties

Link copied to clipboard

True to emulate offline service worker.

Link copied to clipboard

Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.

Link copied to clipboard
val offline: Boolean? = null

True to emulate internet disconnection. Deprecated, use the offline property in matchedNetworkConditions or emulateOfflineServiceWorker instead.