ImageDecoding

A list of values that hint to the browser as to whether it should perform image decoding along with other tasks in a single step Sync, or allow other content to be rendered before this completes Async.

Parameters

Sync

Decode the image synchronously for atomic presentation with other content.

Async

Decode the image asynchronously and allow other content to be rendered before this completes.

Auto

No preference for the decoding mode; the browser decides what is best for the user.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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
open override fun toString(): String
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.