Android APIs
public static final class

VoiceInteractionSession.AbortVoiceRequest

extends VoiceInteractionSession.Request
java.lang.Object
   ↳ android.service.voice.VoiceInteractionSession.Request
     ↳ android.service.voice.VoiceInteractionSession.AbortVoiceRequest

Class Overview

A request to report that the current user interaction can not be completed with voice, as per VoiceInteractor.AbortVoiceRequest.

Summary

Public Methods
CharSequence getMessage()
This method was deprecated in API level 23. Prefer getVoicePrompt() which allows a separate visual message.
VoiceInteractor.Prompt getVoicePrompt()
Return the message informing the user of the problem, as per VoiceInteractor.AbortVoiceRequest.
void sendAbortResult(Bundle result)
Report that the voice interactor has finished aborting the voice operation, resulting in a call to VoiceInteractor.AbortVoiceRequest.onAbortResult.
[Expand]
Inherited Methods
From class android.service.voice.VoiceInteractionSession.Request
From class java.lang.Object

Public Methods

public CharSequence getMessage ()

Added in API level 23

This method was deprecated in API level 23.
Prefer getVoicePrompt() which allows a separate visual message.

Return the message informing the user of the problem, as per VoiceInteractor.AbortVoiceRequest.

public VoiceInteractor.Prompt getVoicePrompt ()

Added in API level 23

Return the message informing the user of the problem, as per VoiceInteractor.AbortVoiceRequest.

public void sendAbortResult (Bundle result)

Added in API level 23

Report that the voice interactor has finished aborting the voice operation, resulting in a call to VoiceInteractor.AbortVoiceRequest.onAbortResult. This finishes the request (it is no longer active).