共用方式為


TextToSpeech.SetOnUtteranceCompletedListener Method

Definition

Caution

deprecated

Sets the listener that will be notified when synthesis of an utterance completes.

[Android.Runtime.Register("setOnUtteranceCompletedListener", "(Landroid/speech/tts/TextToSpeech$OnUtteranceCompletedListener;)I", "GetSetOnUtteranceCompletedListener_Landroid_speech_tts_TextToSpeech_OnUtteranceCompletedListener_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.Speech.Tts.OperationResult SetOnUtteranceCompletedListener (Android.Speech.Tts.TextToSpeech.IOnUtteranceCompletedListener? listener);
[<Android.Runtime.Register("setOnUtteranceCompletedListener", "(Landroid/speech/tts/TextToSpeech$OnUtteranceCompletedListener;)I", "GetSetOnUtteranceCompletedListener_Landroid_speech_tts_TextToSpeech_OnUtteranceCompletedListener_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetOnUtteranceCompletedListener : Android.Speech.Tts.TextToSpeech.IOnUtteranceCompletedListener -> Android.Speech.Tts.OperationResult
override this.SetOnUtteranceCompletedListener : Android.Speech.Tts.TextToSpeech.IOnUtteranceCompletedListener -> Android.Speech.Tts.OperationResult

Parameters

listener
TextToSpeech.IOnUtteranceCompletedListener

The listener to use.

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Java documentation for android.speech.tts.TextToSpeech.setOnUtteranceCompletedListener(android.speech.tts.OnUtteranceCompletedListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to