EventCounts Class

The number of trusted events of each type considered for Event Timing that were dispatched in a window (https://w3c.github.io/event-timing/#sec-event-counts), whatever their duration. An event is counted by the rendering update that follows its dispatch.

Implements

Properties

NameDescription
CountGets the number of event types: all the considered types are in the map, with a count of 0 until an event is dispatched.

Gets the number of event types: all the considered types are in the map, with a count of 0 until an event is dispatched.

public int Count { get; }

Property value

int

Methods

NameDescription
Get(string)Returns the number of events of a type that were dispatched, or null when the type is not considered for Event Timing.
GetEnumerator()Enumerates the event types and their counts, in the order of the specification.
Has(string)Returns whether the events of a type are counted.
System.Collections.IEnumerable.GetEnumerator()

Get(string)

EventTiming.cs

Returns the number of events of a type that were dispatched, or null when the type is not considered for Event Timing.

public ulong? Get(string type)

Parameters

type string
The type of the events, such as click.

Returns

ulong?

GetEnumerator()

EventTiming.cs

Enumerates the event types and their counts, in the order of the specification.

public IEnumerator<KeyValuePair<string, ulong>> GetEnumerator()

Has(string)

EventTiming.cs

Returns whether the events of a type are counted.

public bool Has(string type)

Parameters

type string
The type of the events, such as click.

Returns

bool

System.Collections.IEnumerable.GetEnumerator()

EventTiming.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.