Package org.robolectric.shadows
Class ShadowVoiceInteractionService
java.lang.Object
org.robolectric.shadows.ShadowContextWrapper
org.robolectric.shadows.ShadowService
org.robolectric.shadows.ShadowVoiceInteractionService
@Implements(value=android.service.voice.VoiceInteractionService.class, minSdk=21) public class ShadowVoiceInteractionService extends ShadowService
Shadow implementation of 
VoiceInteractionService.- 
Constructor SummaryConstructors Constructor Description ShadowVoiceInteractionService()
- 
Method SummaryModifier and Type Method Description BundlegetLastSessionBundle()Returns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.BundlegetLastUiHintBundle()Returns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.List<Bundle>getPreviousUiHintBundles()Returns list of bundles provided with calls tosetUiHints(Bundle bundle)in invocation order.protected static booleanisActiveService(Context context, ComponentName componentName)protected voidonReady()static voidreset()Resets this shadow instance.static voidsetActiveService(ComponentName activeService)Sets return value forisActiveService(Context context, ComponentName componentName)method.protected voidsetUiHints(Bundle hints)protected voidshowSession(Bundle args, int flags)Methods inherited from class org.robolectric.shadows.ShadowServicegetLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResultMethods inherited from class org.robolectric.shadows.ShadowContextWrapperclearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getAllStartedServices, getBroadcastIntents, getBroadcastIntentsForUser, getBroadcastOptions, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
- 
Constructor Details- 
ShadowVoiceInteractionServicepublic ShadowVoiceInteractionService()
 
- 
- 
Method Details- 
setActiveServiceSets return value forisActiveService(Context context, ComponentName componentName)method.
- 
onReady
- 
setUiHints
- 
showSession
- 
isActiveService@Implementation protected static boolean isActiveService(Context context, ComponentName componentName)
- 
getPreviousUiHintBundlesReturns list of bundles provided with calls tosetUiHints(Bundle bundle)in invocation order.
- 
getLastUiHintBundleReturns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.
- 
getLastSessionBundleReturns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.
- 
resetResets this shadow instance.
 
-