public enum ToneNotificationChannel extends java.lang.Enum<ToneNotificationChannel>
ToneNotificationChannel is an enumeration defining the audio channel to use for
the scanner notification, subject to Good read rules.
The type is one of:
| SCANNER | The audio channel used by the scanner (default). While using this channel, the volume is controlled by the DecodingNotification.goodReadAudioVolume property. |
| MUSIC | The music audio channel. While using this channel, the volume is controlled by the STREAM_MUSIC channel and subsequently modified by the DecodingNotification.goodReadAudioVolume property. |
| VOICE_CALL | The voice call audio channel. While using this channel, the volume is controlled by the STREAM_VOICE_CALL channel and subsequently modified by the DecodingNotification.goodReadAudioVolume property. |
| ALARM | The alarm audio channel. While using this channel, the volume is controlled by the STREAM_ALARM channel and subsequently modified by the DecodingNotification.goodReadAudioVolume property. |
| RING | The phone ring audio channel. While using this channel, the volume is controlled by the STREAM_RING channel and subsequently modified by the DecodingNotification.goodReadAudioVolume property. |
| Enum Constant and Description |
|---|
ALARM
Alarm
|
MUSIC
Music
|
RING
Ring
|
SCANNER
Scanner
|
VOICE_CALL
Voice call
|
| Modifier and Type | Method and Description |
|---|---|
static ToneNotificationChannel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ToneNotificationChannel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToneNotificationChannel SCANNER
public static final ToneNotificationChannel MUSIC
public static final ToneNotificationChannel VOICE_CALL
public static final ToneNotificationChannel ALARM
public static final ToneNotificationChannel RING
public static ToneNotificationChannel[] values()
for (ToneNotificationChannel c : ToneNotificationChannel.values()) System.out.println(c);
public static ToneNotificationChannel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null