ReadyState

@Serializable
enum ReadyState : Enum<ReadyState>

Represents the ready state of a document in a web browser.

See https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState

Entries

Link copied to clipboard
@SerialName(value = "loading")
LOADING

The document is still loading.

Link copied to clipboard
@SerialName(value = "interactive")
INTERACTIVE

The document has finished loading and the document has been parsed but sub-resources such as scripts, images, stylesheets and frames are still loading. The state indicates that the DOMContentLoaded event is about to fire.

Link copied to clipboard
@SerialName(value = "complete")
COMPLETE

The document and all sub-resources have finished loading. The state indicates that the load event is about to fire.

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.