Package com.zello.sdk

Enum Class AudioMode

java.lang.Object
java.lang.Enum<AudioMode>
com.zello.sdk.AudioMode
All Implemented Interfaces:
Serializable, Comparable<AudioMode>, Constable

public enum AudioMode extends Enum<AudioMode>
The AudioMode enum represents the audio modes available with Zello SDK.
See Also:
  • Enum Constant Details

    • SPEAKER

      public static final AudioMode SPEAKER

      Phone's loudspeaker.

      The default mode. When a wired headset is connected, audio is automatically routed via the headset. When a Bluetooth stereo headset is connected, audio playback is usually routed via the headset while the built-in microphone is used for recording.

    • EARPIECE

      public static final AudioMode EARPIECE

      Phone's earpiece.

      When a headset is connected, this option usually works exactly as SPEAKER.

    • BLUETOOTH

      public static final AudioMode BLUETOOTH

      Bluetooth headset.

      This mode is required to record from Bluetooth or when using mono headsets.

    • WEARABLE

      public static final AudioMode WEARABLE

      Android Wear device.

      Zello supports multiple paired Android Wear devices and lets you select the one you want to use. The device microphone (when available) is used when PTT is activated from the wearable.

  • Method Details

    • values

      public static AudioMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AudioMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null