Package org.robolectric.shadows
Class ShadowMediaActionSound
- java.lang.Object
-
- org.robolectric.shadows.ShadowMediaActionSound
-
@Implements(value=android.media.MediaActionSound.class, minSdk=16) public class ShadowMediaActionSound extends Object
A shadow implementation ofMediaActionSound
.
-
-
Constructor Summary
Constructors Constructor Description ShadowMediaActionSound()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getPlayCount(int soundName)
Get the number of times a sound has been played.protected void
play(int soundName)
Instrumented call toMediaActionSound.play(int)
static void
reset()
-
-
-
Method Detail
-
getPlayCount
public static int getPlayCount(int soundName)
Get the number of times a sound has been played.
-
reset
@Resetter public static void reset()
-
play
@Implementation protected void play(int soundName)
Instrumented call toMediaActionSound.play(int)
-
-