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 ShadowServiceShadow implementation ofVoiceInteractionService.
-
-
Constructor Summary
Constructors Constructor Description ShadowVoiceInteractionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description android.os.BundlegetLastUiHintBundle()Returns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.java.util.List<android.os.Bundle>getPreviousUiHintBundles()Returns list of bundles provided with calls tosetUiHints(Bundle bundle)in invocation order.protected static booleanisActiveService(android.content.Context context, android.content.ComponentName componentName)protected voidonReady()static voidreset()Resets this shadow instance.static voidsetActiveService(android.content.ComponentName activeService)Sets return value forisActiveService(Context context, ComponentName componentName)method.protected voidsetUiHints(android.os.Bundle hints)-
Methods inherited from class org.robolectric.shadows.ShadowService
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
-
Methods inherited from class org.robolectric.shadows.ShadowContextWrapper
clearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getBroadcastIntentsForUser, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
-
-
-
-
Method Detail
-
setActiveService
public static void setActiveService(@Nullable android.content.ComponentName activeService)Sets return value forisActiveService(Context context, ComponentName componentName)method.
-
onReady
@Implementation protected void onReady()
-
setUiHints
@Implementation(minSdk=29) protected void setUiHints(android.os.Bundle hints)
-
isActiveService
@Implementation protected static boolean isActiveService(android.content.Context context, android.content.ComponentName componentName)
-
getPreviousUiHintBundles
public java.util.List<android.os.Bundle> getPreviousUiHintBundles()
Returns list of bundles provided with calls tosetUiHints(Bundle bundle)in invocation order.
-
getLastUiHintBundle
@Nullable public android.os.Bundle getLastUiHintBundle()
Returns the last Bundle object set viasetUiHints(Bundle bundle)or null if there wasn't any.
-
reset
@Resetter public static void reset()
Resets this shadow instance.
-
-