EngagementMetrics¶
Overview¶
Monitors the engagement as it relates to time spent on each screen of a sim. Mainly this is to provide this information to a PhET-iO wrapper frame.
The main output of this file is powered by the data stream. As a result the finest granularity of this data is based on the most frequent events that are emitting. As of this writing, when emitting high frequency events, that is every frame on the "stepSimulation" event. Note that this Type requires high frequency events to be emitted.
@author Michael Kauzmann (PhET Interactive Simulations) @author Chris Klusendorf (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)
Class EngagementMetrics¶
Constructor¶
new EngagementMetrics( sim : Sim )¶
Instance Methods¶
getEngagementMetrics() : EngagementMetricsData¶
get the current engagement data of the simulation.
Source Code¶
See the source for EngagementMetrics.ts in the joist repository.