Package org.robolectric.shadows
Class ShadowVoiceInteractor
- java.lang.Object
-
- org.robolectric.shadows.ShadowVoiceInteractor
-
@Implements(value=android.app.VoiceInteractor.class, minSdk=23) public class ShadowVoiceInteractor extends Object
Shadow implementation ofVoiceInteractor.
-
-
Field Summary
Fields Modifier and Type Field Description static StringassistantPackageName
-
Constructor Summary
Constructors Constructor Description ShadowVoiceInteractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDirectActionsInvalidationCount()Returns the number of timesnotifyDirectActionsChangedwas called on theVoiceInteractorinstance associated with this shadowprotected StringgetPackageName()List<String>getVoiceInteractions()Returns the voice interactions called onVoiceInteractorinstance associated with this shadow.protected voidnotifyDirectActionsChanged()voidsetPackageName(String packageName)protected booleansubmitRequest(VoiceInteractor.Request request)protected booleansubmitRequest(VoiceInteractor.Request request, String name)
-
-
-
Field Detail
-
assistantPackageName
public static String assistantPackageName
-
-
Method Detail
-
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 timesnotifyDirectActionsChangedwas called on theVoiceInteractorinstance associated with this shadow
-
getVoiceInteractions
public List<String> getVoiceInteractions()
Returns the voice interactions called onVoiceInteractorinstance associated with this shadow.
-
-