public enum ButtonName extends Enum<ButtonName>
Defines logical buttons which, on a given SDL unit, would correspond to either physical or soft (touchscreen) buttons. These logical buttons present a standard functional abstraction which the developer can rely upon, independent of the SDL unit. For example, the developer can rely upon the OK button having the same meaning to the user across SDL platforms.
The preset buttons (0-9) can typically be interpreted by the application as corresponding to some user-configured choices, though the application is free to interpret these button presses as it sees fit.
The application can discover which buttons a given SDL unit implements by interrogating the ButtonCapabilities parameter of the RegisterAppInterface response.
| Enum Constant and Description |
|---|
AC |
AC_MAX |
CUSTOM_BUTTON |
DEFROST |
DEFROST_MAX |
DEFROST_REAR |
EJECT |
FAN_DOWN |
FAN_UP |
LOWER_VENT |
NAV_CENTER_LOCATION
Represents the center location button.
|
NAV_HEADING_TOGGLE
Represents the heading toggle button
If supported, this toggles between locking the orientation to north or to the vehicle's heading.
|
NAV_PAN_DOWN
Represents the pan down button.
|
NAV_PAN_DOWN_LEFT
Represents the pan down-left button.
|
NAV_PAN_DOWN_RIGHT
Represents the pan down-right button.
|
NAV_PAN_LEFT
Represents the pan left button.
|
NAV_PAN_RIGHT
Represents the pan right button.
|
NAV_PAN_UP
Represents the pan up button.
|
NAV_PAN_UP_LEFT
Represents the pan up-left button.
|
NAV_PAN_UP_RIGHT
Represents the pan up-right button.
|
NAV_ROTATE_CLOCKWISE
Represents the rotate clockwise button
|
NAV_ROTATE_COUNTERCLOCKWISE
Represents the rotate counterclockwise button
|
NAV_TILT_TOGGLE
Represents the title toggle button
If supported, this toggles between a top-down view and an angled/3D view.
|
NAV_ZOOM_IN
Represents the the zoom in button.
|
NAV_ZOOM_OUT
Represents the zoom out button.
|
OK
THIS ENUM VALUE WILL CHANGE IN FUNCTIONALITY DURING THE NEXT MAJOR RELEASE! This ButtonName value originally was used for both the OK button and PLAY_PAUSE button. |
PLAY_PAUSE
Represents the play/pause button.
|
PRESET_0
Represents the preset 0 button.
|
PRESET_1
Represents the preset 1 button.
|
PRESET_2
Represents the preset 2 button.
|
PRESET_3
Represents the preset 3 button.
|
PRESET_4
Represents the preset 4 button.
|
PRESET_5
Represents the preset 5 button.
|
PRESET_6
Represents the preset 6 button.
|
PRESET_7
Represents the preset 7 button.
|
PRESET_8
Represents the preset 8 button.
|
PRESET_9
Represents the preset 9 button.
|
RECIRCULATE |
REPEAT |
SEARCH |
SEEKLEFT
Represents the seek-left button.
|
SEEKRIGHT
Represents the seek-right button.
|
SHUFFLE |
SOURCE |
TEMP_DOWN |
TEMP_UP |
TUNEDOWN
Represents a turn of the tuner knob in the counter-clockwise direction
one tick.
|
TUNEUP
Represents a turn of the tuner knob in the clockwise direction one tick.
|
UPPER_VENT |
VOLUME_DOWN |
VOLUME_UP |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
indexForPresetButton(ButtonName buttonName)
indexForPresetButton returns the integer index for preset buttons
which match the preset order.
|
static ButtonName |
valueForString(String value) |
static ButtonName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonName OK
PLAY_PAUSEpublic static final ButtonName SEEKLEFT
public static final ButtonName SEEKRIGHT
public static final ButtonName TUNEUP
public static final ButtonName TUNEDOWN
public static final ButtonName PRESET_0
public static final ButtonName PRESET_1
public static final ButtonName PRESET_2
public static final ButtonName PRESET_3
public static final ButtonName PRESET_4
public static final ButtonName PRESET_5
public static final ButtonName PRESET_6
public static final ButtonName PRESET_7
public static final ButtonName PRESET_8
public static final ButtonName PRESET_9
public static final ButtonName CUSTOM_BUTTON
public static final ButtonName SEARCH
public static final ButtonName AC_MAX
public static final ButtonName AC
public static final ButtonName RECIRCULATE
public static final ButtonName FAN_UP
public static final ButtonName FAN_DOWN
public static final ButtonName TEMP_UP
public static final ButtonName TEMP_DOWN
public static final ButtonName DEFROST_MAX
public static final ButtonName DEFROST
public static final ButtonName DEFROST_REAR
public static final ButtonName UPPER_VENT
public static final ButtonName LOWER_VENT
public static final ButtonName VOLUME_UP
public static final ButtonName VOLUME_DOWN
public static final ButtonName EJECT
public static final ButtonName SOURCE
public static final ButtonName SHUFFLE
public static final ButtonName REPEAT
public static final ButtonName PLAY_PAUSE
OKpublic static final ButtonName NAV_CENTER_LOCATION
public static final ButtonName NAV_ZOOM_IN
public static final ButtonName NAV_ZOOM_OUT
public static final ButtonName NAV_PAN_UP
public static final ButtonName NAV_PAN_UP_RIGHT
public static final ButtonName NAV_PAN_RIGHT
public static final ButtonName NAV_PAN_DOWN_RIGHT
public static final ButtonName NAV_PAN_DOWN
public static final ButtonName NAV_PAN_DOWN_LEFT
public static final ButtonName NAV_PAN_LEFT
public static final ButtonName NAV_PAN_UP_LEFT
public static final ButtonName NAV_TILT_TOGGLE
public static final ButtonName NAV_ROTATE_CLOCKWISE
public static final ButtonName NAV_ROTATE_COUNTERCLOCKWISE
public static final ButtonName NAV_HEADING_TOGGLE
public static ButtonName[] values()
for (ButtonName c : ButtonName.values()) System.out.println(c);
public static ButtonName valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ButtonName valueForString(String value)
public static Integer indexForPresetButton(ButtonName buttonName)
buttonName - the buttonName of PRESET_0 through PRESET_9 to