Class ShadowMediaActionSound


  • @Implements(value=android.media.MediaActionSound.class,
                minSdk=16)
    public class ShadowMediaActionSound
    extends java.lang.Object
    A shadow implementation of MediaActionSound.
    • 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 to MediaActionSound.play(int)
      static void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowMediaActionSound

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