-
public final class LayoutShiftSee https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl
-
-
Field Summary
Fields Modifier and Type Field Description private final Doublevalueprivate final BooleanhadRecentInputprivate final DoublelastInputTimeprivate final List<LayoutShiftAttribution>sources
-
Constructor Summary
Constructors Constructor Description LayoutShift(Double value, Boolean hadRecentInput, Double lastInputTime, List<LayoutShiftAttribution> sources)
-
Method Summary
Modifier and Type Method Description final Doublecomponent1()final Booleancomponent2()final Doublecomponent3()final List<LayoutShiftAttribution>component4()final LayoutShiftcopy(Double value, Boolean hadRecentInput, Double lastInputTime, List<LayoutShiftAttribution> sources)final DoublegetValue()Score increment produced by this event. final BooleangetHadRecentInput()final DoublegetLastInputTime()final List<LayoutShiftAttribution>getSources()-
-
Constructor Detail
-
LayoutShift
LayoutShift(Double value, Boolean hadRecentInput, Double lastInputTime, List<LayoutShiftAttribution> sources)
-
-
Method Detail
-
component1
final Double component1()
-
component2
final Boolean component2()
-
component3
final Double component3()
-
component4
final List<LayoutShiftAttribution> component4()
-
copy
final LayoutShift copy(Double value, Boolean hadRecentInput, Double lastInputTime, List<LayoutShiftAttribution> sources)
-
getHadRecentInput
final Boolean getHadRecentInput()
-
getLastInputTime
final Double getLastInputTime()
-
getSources
final List<LayoutShiftAttribution> getSources()
-
-
-
-