Class ShadowVoiceInteractor

java.lang.Object
org.robolectric.shadows.ShadowVoiceInteractor

@Implements(value=android.app.VoiceInteractor.class, minSdk=23) public class ShadowVoiceInteractor extends Object
Shadow implementation of VoiceInteractor.
  • Field Details

    • assistantPackageName

      public static String assistantPackageName
  • Constructor Details

    • ShadowVoiceInteractor

      public ShadowVoiceInteractor()
  • Method Details

    • getPackageName

      @Implementation(minSdk=33) protected String getPackageName()
    • setPackageName

      public void setPackageName(String packageName)
    • notifyDirectActionsChanged

      @Implementation(minSdk=29) protected void notifyDirectActionsChanged()
    • submitRequest

      @Implementation(minSdk=29) protected boolean submitRequest(VoiceInteractor.Request request, String name)
    • submitRequest

      @Implementation(minSdk=29) protected boolean submitRequest(VoiceInteractor.Request request)
    • getDirectActionsInvalidationCount

      public int getDirectActionsInvalidationCount()
      Returns the number of times notifyDirectActionsChanged was called on the VoiceInteractor instance associated with this shadow
    • getVoiceInteractions

      public List<String> getVoiceInteractions()
      Returns the voice interactions called on VoiceInteractor instance associated with this shadow.