-
public final class ViewEvent.PerformanceClsCumulative Layout Shift
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classViewEvent.PerformanceCls.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Numberscoreprivate final Longtimestampprivate final StringtargetSelectorprivate final ViewEvent.PreviousRectpreviousRectprivate final ViewEvent.PreviousRectcurrentRect
-
Constructor Summary
Constructors Constructor Description ViewEvent.PerformanceCls(Number score, Long timestamp, String targetSelector, ViewEvent.PreviousRect previousRect, ViewEvent.PreviousRect currentRect)
-
Method Summary
Modifier and Type Method Description final NumbergetScore()final LonggetTimestamp()final StringgetTargetSelector()final ViewEvent.PreviousRectgetPreviousRect()final ViewEvent.PreviousRectgetCurrentRect()final JsonElementtoJson()-
-
Constructor Detail
-
ViewEvent.PerformanceCls
ViewEvent.PerformanceCls(Number score, Long timestamp, String targetSelector, ViewEvent.PreviousRect previousRect, ViewEvent.PreviousRect currentRect)
- Parameters:
score- Total layout shift score that occurred on the viewtimestamp- The time of the largest layout shift contributing to CLS, in ns since view start.targetSelector- CSS selector path of the first element (in document order) of the largest layout shift contributing to CLSpreviousRect- Schema for DOMRect-like rectangles describing an element's bounding client rectcurrentRect- Schema for DOMRect-like rectangles describing an element's bounding client rect
-
-
Method Detail
-
getTimestamp
final Long getTimestamp()
-
getTargetSelector
final String getTargetSelector()
-
getPreviousRect
final ViewEvent.PreviousRect getPreviousRect()
-
getCurrentRect
final ViewEvent.PreviousRect getCurrentRect()
-
toJson
final JsonElement toJson()
-
-
-
-