类 BeepManager

  • 所有已实现的接口:
    android.media.MediaPlayer.OnErrorListener, java.io.Closeable, java.lang.AutoCloseable

    public final class BeepManager
    extends java.lang.Object
    implements android.media.MediaPlayer.OnErrorListener, java.io.Closeable
    • 构造器概要

      构造器 
      构造器 说明
      BeepManager​(android.content.Context context)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()  
      boolean onError​(android.media.MediaPlayer mp, int what, int extra)  
      void playBeepSoundAndVibrate()  
      void setPlayBeep​(boolean playBeep)  
      void setVibrate​(boolean vibrate)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • BeepManager

        public BeepManager​(android.content.Context context)
    • 方法详细资料

      • setVibrate

        public void setVibrate​(boolean vibrate)
      • setPlayBeep

        public void setPlayBeep​(boolean playBeep)
      • playBeepSoundAndVibrate

        public void playBeepSoundAndVibrate()
      • onError

        public boolean onError​(android.media.MediaPlayer mp,
                               int what,
                               int extra)
        指定者:
        onError 在接口中 android.media.MediaPlayer.OnErrorListener
      • close

        public void close()
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable