FileDocCategorySizeDatePackage
MockableTextToSpeechService.javaAPI DocAndroid 5.1 API2238Thu Mar 12 22:22:44 GMT 2015com.android.speech.tts

MockableTextToSpeechService

public class MockableTextToSpeechService extends android.speech.tts.TextToSpeechService

Fields Summary
private static IDelegate
sDelegate
Constructors Summary
Methods Summary
static com.android.speech.tts.MockableTextToSpeechService$IDelegategetMocker()

        return sDelegate;
    
protected java.lang.String[]onGetLanguage()

        return sDelegate.onGetLanguage();
    
protected intonIsLanguageAvailable(java.lang.String lang, java.lang.String country, java.lang.String variant)

        return sDelegate.onIsLanguageAvailable(lang, country, variant);
    
protected intonLoadLanguage(java.lang.String lang, java.lang.String country, java.lang.String variant)

        return sDelegate.onLoadLanguage(lang, country, variant);
    
protected voidonStop()

        sDelegate.onStop();
    
protected voidonSynthesizeText(android.speech.tts.SynthesisRequest request, android.speech.tts.SynthesisCallback callback)

        sDelegate.onSynthesizeText(request, callback);
    
public static voidsetMocker(com.android.speech.tts.MockableTextToSpeechService$IDelegate delegate)

        sDelegate = delegate;