Skip to content

Commit

Permalink
create SpeakableResolvedResponse to facilitate dynamic locale strings…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 19, 2022
1 parent 05a23a2 commit 67caa7d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/ScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { Node, NodeOptions } from '../../scenery/js/imports.js';
import Tandem from '../../tandem/js/Tandem.js';
import joist from './joist.js';
import PickRequired from '../../phet-core/js/types/PickRequired.js';
import { SpeakableResolvedResponse } from '../../utterance-queue/js/ResponsePacket.js';

/*
* Default width and height for iPad2, iPad3, iPad4 running Safari with default tabs and decorations
Expand Down Expand Up @@ -237,7 +238,7 @@ class ScreenView extends Node {
* is pressed.
* Must be implemented if supporting voicing in your ScreenView.
*/
public getVoicingOverviewContent(): string {
public getVoicingOverviewContent(): SpeakableResolvedResponse {
throw new Error( 'The ScreenView should implement getVoicingOverviewContent if Voicing is enabled' );
}

Expand All @@ -246,15 +247,15 @@ class ScreenView extends Node {
* pressed.
* Must be implemented if supporting voicing in your ScreenView.
*/
public getVoicingDetailsContent(): string {
public getVoicingDetailsContent(): SpeakableResolvedResponse {
throw new Error( 'The ScreenView should implement getVoicingDetailsContent when the Voicing feature is enabled.' );
}

/**
* Create the alert content for this ScreenView when the Voicing feature is enabled and the "Hint" button is pressed.
* Must be implemented if supporting voicing in your ScreenView.
*/
public getVoicingHintContent(): string {
public getVoicingHintContent(): SpeakableResolvedResponse {
throw new Error( 'The ScreenView should implement getVoicingHintContent when Voicing is enabled.' );
}

Expand Down

0 comments on commit 67caa7d

Please sign in to comment.