-
public final class ViewEvent.LcpLargest Contentful Paint
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classViewEvent.Lcp.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Longtimestampprivate final StringtargetSelectorprivate StringresourceUrl
-
Constructor Summary
Constructors Constructor Description ViewEvent.Lcp(Long timestamp, String targetSelector, String resourceUrl)
-
Method Summary
Modifier and Type Method Description final LonggetTimestamp()final StringgetTargetSelector()final StringgetResourceUrl()final UnitsetResourceUrl(String resourceUrl)final JsonElementtoJson()-
-
Constructor Detail
-
ViewEvent.Lcp
ViewEvent.Lcp(Long timestamp, String targetSelector, String resourceUrl)
- Parameters:
timestamp- Time of the largest contentful paint, in ns since view start.targetSelector- CSS selector path of the largest contentful paint elementresourceUrl- URL of the largest contentful paint element
-
-
Method Detail
-
getTimestamp
final Long getTimestamp()
-
getTargetSelector
final String getTargetSelector()
-
getResourceUrl
final String getResourceUrl()
-
setResourceUrl
final Unit setResourceUrl(String resourceUrl)
- Parameters:
resourceUrl- URL of the largest contentful paint element
-
toJson
final JsonElement toJson()
-
-
-
-