VisibilityStateEntry Class
A change of the visibility state of a document (https://html.spec.whatwg.org/multipage/interaction.html#the-visibilitystateentry-interface), reported to the visibility-state performance observers of its window and available from its performance timeline: its name is the visibility state (visible or hidden) and its start time is the time of the change (0 for the initial visibility state of the document).
public sealed class VisibilityStateEntry : PerformanceEntry- Inheritance
PerformanceEntryVisibilityStateEntry
Properties
| Name | Description |
|---|---|
| Duration | Gets 0 (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-duration). |
| EntryType | Gets visibility-state (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-entrytype). |
| Name | Gets the visibility state: visible or hidden (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-name). |
| StartTime | Gets the time of the change of the visibility state (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-starttime). |
Duration
VisibilityStateEntry.csGets 0 (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-duration).
public new uint Duration { get; }EntryType
VisibilityStateEntry.csGets visibility-state (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-entrytype).
public new string EntryType { get; }Gets the visibility state: visible or hidden (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-name).
public new string Name { get; }StartTime
VisibilityStateEntry.csGets the time of the change of the visibility state (https://html.spec.whatwg.org/multipage/interaction.html#dom-visibilitystateentry-starttime).
public new double StartTime { get; }