Class AudioCtrl


  • public class AudioCtrl
    extends java.lang.Object
    The type Audio ctrl.
    • Constructor Summary

      Constructors 
      Constructor Description
      AudioCtrl​(android.content.Context context)
      Instantiates a new Audio ctrl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.os.Bundle setDefaultNotificationSound​(java.lang.String data)
      Set default notification sound bundle.
      android.os.Bundle setDialPadTouchTones​(boolean enabled)
      Set dial pad touch tones bundle.
      android.os.Bundle setRingtoneSound​(java.lang.String data)
      Set ringtone sound bundle.
      android.os.Bundle setTouchSound​(boolean enabled)
      Set touch sound bundle.
      android.os.Bundle setVibrateOnTouch​(boolean enabled)
      Set vibrate on touch bundle.
      android.os.Bundle setVolume​(int type, int volumeValue)
      Set Volume
      • Methods inherited from class java.lang.Object

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

      • AudioCtrl

        public AudioCtrl​(android.content.Context context)
        Instantiates a new Audio ctrl.
        Parameters:
        context - the context
    • Method Detail

      • setDefaultNotificationSound

        public android.os.Bundle setDefaultNotificationSound​(java.lang.String data)
        Set default notification sound bundle.
        Parameters:
        data - Sound name (String)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setRingtoneSound

        public android.os.Bundle setRingtoneSound​(java.lang.String data)
        Set ringtone sound bundle.
        Parameters:
        data - Sound name (String)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setDialPadTouchTones

        public android.os.Bundle setDialPadTouchTones​(boolean enabled)
        Set dial pad touch tones bundle.
        Parameters:
        enabled - true or false (boolean)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setTouchSound

        public android.os.Bundle setTouchSound​(boolean enabled)
        Set touch sound bundle.
        Parameters:
        enabled - true or false (boolean)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setVibrateOnTouch

        public android.os.Bundle setVibrateOnTouch​(boolean enabled)
        Set vibrate on touch bundle.
        Parameters:
        enabled - true for false (boolean)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • setVolume

        public android.os.Bundle setVolume​(int type,
                                           int volumeValue)
        Set Volume
        Parameters:
        type - 2:Ring, 3:Media, 4:Alarm (int)
        volumeValue - 0-100 (int)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");