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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getPlayCount
(int soundName) Get the number of times a sound has been played.protected static boolean
protected void
play
(int soundName) Instrumented call toMediaActionSound.play(int)
static void
reset()
static void
setMustPlayShutterSound
(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
-