Skip to content

VibrationIndicator

Overview

A way to visualize haptic feedback. This is an icon that looks like a phone with zig zag lines around it to represent vibration. When vibrating, the zig zags are visible and jostle around and the phone screen turns a different color.

@author Jesse Greenberg

Class VibrationIndicator

import { VibrationIndicator } from 'scenerystack/tappi';

Constructor

new VibrationIndicator( vibratingProperty )

Instance Methods

step( dt )

Animate the indicator if vibrating. @public

@param {number} dt

Source Code

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