ConfirmationRequest
class ConfirmationRequest : VoiceInteractionSession.Request
kotlin.Any | ||
↳ | android.service.voice.VoiceInteractionSession.Request | |
↳ | android.service.voice.VoiceInteractionSession.ConfirmationRequest |
A request for confirmation from the user of an operation, as per VoiceInteractor.ConfirmationRequest
.
Summary
Public methods | |
---|---|
CharSequence? |
Return the prompt informing the user of what will happen, as per |
VoiceInteractor.Prompt? |
Return the prompt informing the user of what will happen, as per |
Unit |
sendConfirmationResult(confirmed: Boolean, result: Bundle!) Report that the voice interactor has confirmed the operation with the user, resulting in a call to |
Inherited functions | |
---|---|
Public methods
getPrompt
fungetPrompt(): CharSequence?
Deprecated: Prefer getVoicePrompt()
which allows multiple voice prompts.
Return the prompt informing the user of what will happen, as per VoiceInteractor.ConfirmationRequest
.
Return | |
---|---|
CharSequence? |
This value may be null . |
getVoicePrompt
fun getVoicePrompt(): VoiceInteractor.Prompt?
Return the prompt informing the user of what will happen, as per VoiceInteractor.ConfirmationRequest
.
Return | |
---|---|
VoiceInteractor.Prompt? |
This value may be null . |
sendConfirmationResult
fun sendConfirmationResult(
confirmed: Boolean,
result: Bundle!
): Unit
Report that the voice interactor has confirmed the operation with the user, resulting in a call to VoiceInteractor.ConfirmationRequest.onConfirmationResult
. This finishes the request (it is no longer active).