SimulatedOfflineMode

Types of network failure that can be simulated.

Entries

Link copied to clipboard

Disables simulated offline mode. Network requests proceed normally and connectivity status reflects actual network conditions. This is the default state.

Link copied to clipboard

Immediate connection failure. Requests fail instantly with a network error. This is the fastest mode for testing but least realistic.

Link copied to clipboard

Timeout simulation. Requests hang until timeout (15 seconds), then fail. More realistic but slower due to retry logic being exercised.

Link copied to clipboard

Intermittent failures. Approximately 50% of requests will fail randomly. Useful for testing retry behavior and partial connectivity.

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
Link copied to clipboard

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.