updateLanguage method

void updateLanguage(
  1. LanguageStatus status
)

Called by an engine when a language install is attempted, and when a language is uninstalled. Also called in response to a status request from a client. When a voice is installed or uninstalled, the engine should also call ttsEngine.updateVoices to register the voice. status The install status of the language.

Implementation

void updateLanguage(LanguageStatus status) {
  $js.chrome.ttsEngine.updateLanguage(status.toJS);
}