Skip to content

VibrationTestEventRecorder

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/tappi/blob/main/js/tracking/VibrationTestEventRecorder.js for the most up-to-date information.

Overview

A collection of VibrationTestEvents. Has functions that prepare the data to be sent to a containing Swift app (as is used in the Vibration project) - so that the data can be saved to the device or sent back to the team for further testing.

@author Jesse Greenberg

Class VibrationTestEventRecorder

import { VibrationTestEventRecorder } from 'scenerystack/tappi';

Constructor

new VibrationTestEventRecorder( vibrationManager )

Instance Methods

addTestEvent( testEvent )

Adds a VibrationTestEvent to the collection. @public

@param {VibrationTestEvent} testEvent

dataToString()

Convert all saved events to a string that can be sent to the containing Swift app. @public

Source Code

See the source for VibrationTestEventRecorder.js in the tappi repository.