# Print output for @column tags ?> VoiceInteractionSession.AbortVoiceRequest - Android SDK | Android Developers

Most visited

Recently visited

VoiceInteractionSession.AbortVoiceRequest

public static final class VoiceInteractionSession.AbortVoiceRequest
extends VoiceInteractionSession.Request

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


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 is deprecated. 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.

Inherited methods

Public methods

getMessage

public CharSequence getMessage ()

This method is deprecated.
Prefer getVoicePrompt() which allows a separate visual message.

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

Returns
CharSequence This value may be null.

getVoicePrompt

public VoiceInteractor.Prompt getVoicePrompt ()

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

Returns
VoiceInteractor.Prompt This value may be null.

sendAbortResult

public void sendAbortResult (Bundle result)

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).

Parameters
result Bundle