Package org.robolectric.shadows
Class ShadowVoiceInteractionSession
- java.lang.Object
- 
- org.robolectric.shadows.ShadowVoiceInteractionSession
 
- 
 @Implements(value=android.service.voice.VoiceInteractionSession.class, minSdk=21) public class ShadowVoiceInteractionSession extends Object Shadow implementation ofVoiceInteractionSession.
- 
- 
Constructor SummaryConstructors Constructor Description ShadowVoiceInteractionSession()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate()Simulates the creation of theVoiceInteractionSession, as if it was being created by the framework.com.google.common.collect.ImmutableList<Intent>getAssistantActivityIntents()Returns the list ofIntentinstances passed intoVoiceInteractionSession.startAssistantActivity(Intent)in invocation order.IntentgetLastAssistantActivityIntent()Returns the lastIntentpassed intoVoiceInteractionSession.startAssistantActivity(Intent)ornullif there wasn't any.IntentgetLastVoiceActivityIntent()Returns the lastIntentpassed intoVoiceInteractionSession.startVoiceActivity(Intent)ornullif there wasn't any.com.google.common.collect.ImmutableList<Intent>getVoiceActivityIntents()Returns the list ofIntentinstances passed intoVoiceInteractionSession.startVoiceActivity(Intent)in invocation order.booleanisFinishing()Returns whether theVoiceInteractionSessionis in the process of being destroyed and finishing.booleanisUiEnabled()Returns whether the UI is set to be enabled throughVoiceInteractionSession.setUiEnabled(boolean).booleanisWindowShowing()Returns whether the UI window fromVoiceInteractionSessionis currently showing.booleanisWindowVisible()Returns whether the window fromVoiceInteractionSessionis currently visible.voidsetStartVoiceActivityException(RuntimeException exception)Sets aRuntimeExceptionthat should be thrown whenVoiceInteractionSession.startVoiceActivity(Intent)is invoked.
 
- 
- 
- 
Method Detail- 
createpublic void create() Simulates the creation of theVoiceInteractionSession, as if it was being created by the framework.This method must be called before state changing methods of VoiceInteractionSession.
 - 
getLastAssistantActivityIntent@Nullable public Intent getLastAssistantActivityIntent() Returns the lastIntentpassed intoVoiceInteractionSession.startAssistantActivity(Intent)ornullif there wasn't any.
 - 
getAssistantActivityIntentspublic com.google.common.collect.ImmutableList<Intent> getAssistantActivityIntents() Returns the list ofIntentinstances passed intoVoiceInteractionSession.startAssistantActivity(Intent)in invocation order.
 - 
getLastVoiceActivityIntent@Nullable public Intent getLastVoiceActivityIntent() Returns the lastIntentpassed intoVoiceInteractionSession.startVoiceActivity(Intent)ornullif there wasn't any.
 - 
getVoiceActivityIntentspublic com.google.common.collect.ImmutableList<Intent> getVoiceActivityIntents() Returns the list ofIntentinstances passed intoVoiceInteractionSession.startVoiceActivity(Intent)in invocation order.
 - 
isWindowVisiblepublic boolean isWindowVisible() Returns whether the window fromVoiceInteractionSessionis currently visible. Although window is visible this method does not check whether UI content of window is also showed.
 - 
isWindowShowingpublic boolean isWindowShowing() Returns whether the UI window fromVoiceInteractionSessionis currently showing.
 - 
isUiEnabledpublic boolean isUiEnabled() Returns whether the UI is set to be enabled throughVoiceInteractionSession.setUiEnabled(boolean).
 - 
isFinishingpublic boolean isFinishing() Returns whether theVoiceInteractionSessionis in the process of being destroyed and finishing.
 - 
setStartVoiceActivityExceptionpublic void setStartVoiceActivityException(RuntimeException exception) Sets aRuntimeExceptionthat should be thrown whenVoiceInteractionSession.startVoiceActivity(Intent)is invoked.
 
- 
 
-