LayoutShift

data class LayoutShift(value: Double, hadRecentInput: Boolean, lastInputTime: TimeSinceEpoch, sources: List<LayoutShiftAttribution>)

See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl

Constructors

LayoutShift
Link copied to clipboard
fun LayoutShift(value: Double, hadRecentInput: Boolean, lastInputTime: TimeSinceEpoch, sources: List<LayoutShiftAttribution>)

Properties

hadRecentInput
Link copied to clipboard
val hadRecentInput: Boolean
lastInputTime
Link copied to clipboard
val lastInputTime: TimeSinceEpoch
sources
Link copied to clipboard
val sources: List<LayoutShiftAttribution>
value
Link copied to clipboard
val value: Double
Score increment produced by this event.

Sources

jvm source
Link copied to clipboard