Package org.robolectric.shadows
Class ShadowMediaActionSound
java.lang.Object
org.robolectric.shadows.ShadowMediaActionSound
@Implements(android.media.MediaActionSound.class)
public class ShadowMediaActionSound
extends Object
A shadow implementation of
MediaActionSound.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetPlayCount(int soundName) Get the number of times a sound has been played.protected static booleanprotected voidplay(int soundName) Instrumented call toMediaActionSound.play(int)static voidreset()static voidsetMustPlayShutterSound(boolean mustPlayShutterSound) Sets the value returned byMediaActionSound.mustPlayShutterSound().
-
Constructor Details
-
ShadowMediaActionSound
public ShadowMediaActionSound()
-
-
Method Details
-
getPlayCount
public static int getPlayCount(int soundName) Get the number of times a sound has been played. -
setMustPlayShutterSound
public static void setMustPlayShutterSound(boolean mustPlayShutterSound) Sets the value returned byMediaActionSound.mustPlayShutterSound(). -
reset
-
play
Instrumented call toMediaActionSound.play(int) -
mustPlayShutterSound
-