FileDocCategorySizeDatePackage
SilencePlaybackQueueItem.javaAPI DocAndroid 5.1 API1618Thu Mar 12 22:22:10 GMT 2015android.speech.tts

SilencePlaybackQueueItem

public class SilencePlaybackQueueItem extends PlaybackQueueItem

Fields Summary
private final android.os.ConditionVariable
mCondVar
private final long
mSilenceDurationMs
Constructors Summary
SilencePlaybackQueueItem(android.speech.tts.TextToSpeechService.UtteranceProgressDispatcher dispatcher, Object callerIdentity, long silenceDurationMs)


     
                
        super(dispatcher, callerIdentity);
        mSilenceDurationMs = silenceDurationMs;
    
Methods Summary
public voidrun()

        getDispatcher().dispatchOnStart();
        boolean wasStopped = false;
        if (mSilenceDurationMs > 0) {
          wasStopped = mCondVar.block(mSilenceDurationMs);
        }
        if (wasStopped) {
            getDispatcher().dispatchOnStop();
        } else {
            getDispatcher().dispatchOnSuccess();
        }

    
voidstop(int errorCode)

        mCondVar.open();