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 Details

    • ShadowMediaActionSound

      public ShadowMediaActionSound()
  • Method Details

    • 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 to MediaActionSound.play(int)