public abstract class TTSComponent extends Object
TTSListener
s.Constructor and Description |
---|
TTSComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(TTSListener listener)
Add a TTS listener to receive events from this component.
|
void |
dispatch(TTSEvent event)
Notify all subscribed TTS listeners that an event has occurred.
|
void |
removeListener(TTSListener listener)
Remove a TTS listener so it can be garbage collected.
|
public void addListener(TTSListener listener)
listener
- The listener to add.public void removeListener(TTSListener listener)
listener
- The listener to remove.public void dispatch(TTSEvent event)
event
- The event that has occurred.Copyright © 2021. All rights reserved.