Table of Contents

Class VisibilityStateEntry

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The VisibilityStateEntry 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.

Page Visibility API

See also on MDN

Constructors

VisibilityStateEntry()

public VisibilityStateEntry()

Properties

Duration

[Value("duration")]
public ulong Duration { get; }

Property Value

ulong

EntryType

[Value("entryType")]
public string EntryType { get; }

Property Value

string

Name

[Value("name")]
public string Name { get; }

Property Value

string

StartTime

[Value("startTime")]
public Number StartTime { get; }

Property Value

Number