Class PerformanceObserverEntryList
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The PerformanceObserverEntryList interface is a list of PerformanceEntry that were explicitly observed via the Observe(PerformanceObserverInit) method.
[Value("PerformanceObserverEntryList")]
public class PerformanceObserverEntryList
- Inheritance
-
PerformanceObserverEntryList
- Inherited Members
Remarks
Constructors
PerformanceObserverEntryList()
public PerformanceObserverEntryList()
Methods
GetEntries()
The getEntries() method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects. The list's members are determined by the set of EntryType specified in the call to the Observe(PerformanceObserverInit) method. The list is available in the observer's callback function (as the first parameter in the callback).
[Value("getEntries")]
public List<PerformanceEntry> GetEntries()
Returns
- List<PerformanceEntry>
A list of explicitly observed PerformanceEntry objects. The items will be in chronological order based on the entries' StartTime. If no objects are found, an empty list is returned.
Remarks
GetEntriesByName(string, string)
The getEntriesByName() method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given Name and EntryType. The list's members are determined by the set of EntryType specified in the call to the Observe(PerformanceObserverInit) method. The list is available in the observer's callback function (as the first parameter in the callback).
[Value("getEntriesByName")]
public List<PerformanceEntry> GetEntriesByName(string name, string type = null)
Parameters
Returns
- List<PerformanceEntry>
A list of explicitly observed PerformanceEntry objects that have the specified
nameandtype. If thetypeargument is not specified, only thenamewill be used to determine the entries to return. The items will be in chronological order based on the entries' StartTime. If no objects meet the specified criteria, an empty list is returned.
Remarks
GetEntriesByType(string)
The getEntriesByType() method of the PerformanceObserverEntryList returns a list of explicitly observed PerformanceEntry objects for a given EntryType. The list's members are determined by the set of EntryType specified in the call to the Observe(PerformanceObserverInit) method. The list is available in the observer's callback function (as the first parameter in the callback).
[Value("getEntriesByType")]
public List<PerformanceEntry> GetEntriesByType(string type)
Parameters
typestring
Returns
- List<PerformanceEntry>
A list of explicitly observed PerformanceEntry objects that have the specified
type. The items will be in chronological order based on the entries' StartTime. If no objects have the specifiedtype, or no argument is provided, an empty list is returned.