Skip to content

VoicingToolbarAlertManager

Overview

Abstract class that creates alert content for the VoicingToolbarItem. Buttons in that item will call these functions to create content that is spoken using speech synthesis. Extend this class and implement these functions. Then pass this as an entry to the PreferencesModel when creating a Sim.

@author Jesse Greenberg

Class VoicingToolbarAlertManager

import { VoicingToolbarAlertManager } from 'scenerystack/sim';

Constructor

new VoicingToolbarAlertManager( screenProperty : TReadOnlyProperty<AnyScreen> )

Instance Methods

createOverviewContent() : SpeakableResolvedResponse

Create the alert content for the simulation overview for the "Overview" button.

createDetailsContent() : SpeakableResolvedResponse

Creates the alert content for the simulation details when the "Current Details" button is pressed.

createHintContent() : SpeakableResolvedResponse

Creates the alert content for an interaction hint when the "Hint" button is pressed.

Source Code

See the source for VoicingToolbarAlertManager.ts in the joist repository.