Class VisibilityStateEntry
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalVisibilityStateEntry interface provides timings of page visibility state changes, i.e., when a tab changes from the foreground to the background or vice versa.
[Value("VisibilityStateEntry")]
public class VisibilityStateEntry : PerformanceEntry
- Inheritance
-
VisibilityStateEntry
- Inherited Members
Remarks
This can be used to pinpoint visibility changes on the performance timeline, and cross-reference them against other performance entries such as "first-contentful-paint" (see PerformancePaintTiming).
There are two key visibility state change times that this API reports on:
The performance timeline will always have a "visibility-state" entry with a startTime of 0 and a name representing the initial page visibility state.
NOTE
Like other Performance APIs, this API extends PerformanceEntry.
Constructors
VisibilityStateEntry()
public VisibilityStateEntry()
Properties
Duration
[Value("duration")]
public ulong Duration { get; }
Property Value
EntryType
[Value("entryType")]
public string EntryType { get; }
Property Value
Name
[Value("name")]
public string Name { get; }
Property Value
StartTime
[Value("startTime")]
public Number StartTime { get; }