Class AudioCtrl

java.lang.Object
com.unitech.api.audio.AudioCtrl

public class AudioCtrl extends Object
The type Audio ctrl.
  • Field Details

  • Constructor Details

    • AudioCtrl

      public AudioCtrl(Context context)
      Instantiates a new Audio ctrl.
      Parameters:
      context - the context
  • Method Details

    • setDefaultNotificationSound

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

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

      public 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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • setTouchSound

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

      public 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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • setVolume

      public 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 errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");