Code example for Vibrator

Methods: cancel

0
    /** 
     * Used to protect the TextToSpeech class, only exposing the methods we want to expose. 
     */ 
    private static class TextToSpeechWrapper { 
        private TextToSpeech mTextToSpeech;
        private SelfBrailleClient mSelfBrailleClient;
        private View mView;
 
        public TextToSpeechWrapper(View view, Context context) {
            mView = view;
            mTextToSpeech = new TextToSpeech(context, null, null);
            mSelfBrailleClient = new SelfBrailleClient(context, CommandLine.getInstance().hasSwitch(
                    CommandLine.ACCESSIBILITY_DEBUG_BRAILLE_SERVICE)); 
        } 
 
        @JavascriptInterface 
        @SuppressWarnings("unused") 
        public boolean isSpeaking() { 
            return mTextToSpeech.isSpeaking();
        }