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 of
MediaActionSound
.-
Constructor Summary
Constructors Constructor Description ShadowMediaActionSound()
-
Method Summary
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()
-
Constructor Details
-
ShadowMediaActionSound
public ShadowMediaActionSound()
-
-
Method Details
-
getPlayCount
public static int getPlayCount(int soundName)Get the number of times a sound has been played. -
reset
-
play
Instrumented call toMediaActionSound.play(int)
-