@Implements(value=android.service.voice.VoiceInteractionService.class, minSdk=21) public class ShadowVoiceInteractionService extends ShadowService
VoiceInteractionService
.Constructor | Description |
---|---|
ShadowVoiceInteractionService() |
Modifier and Type | Method | Description |
---|---|---|
Bundle |
getLastUiHintBundle() |
Returns the last Bundle object set via
setUiHints(Bundle bundle) or null if there
wasn't any. |
List<Bundle> |
getPreviousUiHintBundles() |
Returns list of bundles provided with calls to
setUiHints(Bundle bundle) in invocation
order. |
protected static boolean |
isActiveService(Context context,
ComponentName componentName) |
|
protected void |
onReady() |
|
static void |
reset() |
Resets this shadow instance.
|
static void |
setActiveService(ComponentName activeService) |
Sets return value for
isActiveService(Context context, ComponentName componentName)
method. |
protected void |
setUiHints(Bundle hints) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getBroadcastIntentsForUser, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
public static void setActiveService(@Nullable ComponentName activeService)
isActiveService(Context context, ComponentName componentName)
method.@Implementation protected void onReady()
@Implementation(minSdk=29) protected void setUiHints(Bundle hints)
@Implementation protected static boolean isActiveService(Context context, ComponentName componentName)
public List<Bundle> getPreviousUiHintBundles()
setUiHints(Bundle bundle)
in invocation
order.@Nullable public Bundle getLastUiHintBundle()
setUiHints(Bundle bundle)
or null if there
wasn't any.@Resetter public static void reset()