Android APIs
public abstract class

VoiceInteractionSession

extends Object
implements KeyEvent.Callback
java.lang.Object
   ↳ android.service.voice.VoiceInteractionSession

Class Overview

An active interaction session, started by a VoiceInteractionService.

Summary

Public Constructors
VoiceInteractionSession(Context context)
VoiceInteractionSession(Context context, Handler handler)
Public Methods
void finish()
Finish the session.
void onCloseSystemDialogs()
Sessions automatically watch for requests that all system UI be closed (such as when the user presses HOME), which will appear here.
void onCreate(Bundle args)
Initiatize a new session.
void onDestroy()
Last callback to the session as it is being finished.
void setContentView(View view)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.view.KeyEvent.Callback

Public Constructors

public VoiceInteractionSession (Context context)

Added in API level 21

public VoiceInteractionSession (Context context, Handler handler)

Added in API level 21

Public Methods

public void finish ()

Added in API level 21

Finish the session.

public void onCloseSystemDialogs ()

Added in API level 21

Sessions automatically watch for requests that all system UI be closed (such as when the user presses HOME), which will appear here. The default implementation always calls finish().

public void onCreate (Bundle args)

Added in API level 21

Initiatize a new session.

Parameters
args The arguments that were supplied to VoiceInteractionService.startSession.

public void onDestroy ()

Added in API level 21

Last callback to the session as it is being finished.

public void setContentView (View view)

Added in API level 21