FileDocCategorySizeDatePackage
PlaybackQueueItem.javaAPI DocAndroid 5.1 API1073Thu Mar 12 22:22:10 GMT 2015android.speech.tts

PlaybackQueueItem

public abstract class PlaybackQueueItem extends Object implements Runnable

Fields Summary
private final android.speech.tts.TextToSpeechService.UtteranceProgressDispatcher
mDispatcher
private final Object
mCallerIdentity
Constructors Summary
PlaybackQueueItem(android.speech.tts.TextToSpeechService.UtteranceProgressDispatcher dispatcher, Object callerIdentity)

        mDispatcher = dispatcher;
        mCallerIdentity = callerIdentity;
    
Methods Summary
java.lang.ObjectgetCallerIdentity()

        return mCallerIdentity;
    
protected android.speech.tts.TextToSpeechService.UtteranceProgressDispatchergetDispatcher()

        return mDispatcher;
    
public abstract voidrun()

abstract voidstop(int errorCode)
Stop the playback.

param
errorCode Cause of the stop. Can be either one of the error codes from {@link android.speech.tts.TextToSpeech} or {@link android.speech.tts.TextToSpeech#STOPPED} if stopped on a client request.