package com.smartdevicelink.proxy.rpc; import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCRequest; import java.util.Hashtable; import java.util.List; /** *

This will bring up an alert with information related to the next navigation maneuver including potential voice * navigation instructions. Shown information will be taken from the ShowConstantTBT function *

*

Function Group: Navigation

* *

HMILevel needs to be FULL, LIMITED or BACKGROUND

* * * @since SmartDeviceLink 2.0 * @see ShowConstantTbt */ public class AlertManeuver extends RPCRequest{ public static final String KEY_TTS_CHUNKS = "ttsChunks"; public static final String KEY_SOFT_BUTTONS = "softButtons"; /** * Constructs a new AlertManeuver object */ public AlertManeuver(){ super(FunctionID.ALERT_MANEUVER.toString()); } /** * *

Constructs a new AlertManeuver object indicated by the Hashtable parameter

* * * @param hash * The Hashtable to use */ public AlertManeuver(Hashtable hash){ super(hash); } /** * Gets the SoftButton List object * * @return List -a List representing the List object * @since SmartDeviceLink 2.0 */ @SuppressWarnings("unchecked") public List getSoftButtons(){ return (List) getObject(SoftButton.class, KEY_SOFT_BUTTONS); } /** * Sets the SoftButtons * * @param softButtons * a List value *

* Notes:

*
    *
  • If omitted on supported displays, the alert will not have any SoftButton
  • *
  • ArrayMin: 0
  • *
  • ArrayMax: 4
  • *
* @since SmartDeviceLink 2.0 */ public void setSoftButtons(List softButtons){ setParameters(KEY_SOFT_BUTTONS, softButtons); } /** * Gets TTSChunk[], the Array of type TTSChunk which, taken together, specify what is to be spoken to the user * * @return List -a List value specify what is to be spoken to the user */ @SuppressWarnings("unchecked") public List getTtsChunks(){ return (List) getObject(TTSChunk.class, KEY_TTS_CHUNKS); } /** * Sets array of type TTSChunk which, taken together, specify what is to be spoken to the user * * @param ttsChunks *

* Notes:

Array must have a least one element */ public void setTtsChunks(List ttsChunks){ setParameters(KEY_TTS_CHUNKS, ttsChunks); } }