java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCRequest
HMILevel needs to be FULL, LIMITED or BACKGROUND
Parameter List
Param Name | Type | Description | Req. | Notes | Version Available |
---|---|---|---|---|---|
mainField1 | String | Text to be displayed in a single-line display, or in the upper display line in a two-line display. | N | If this parameter is omitted, the text of mainField1 does not change. If this parameter is an empty string, the field will be cleared. Maxlength = 500 |
SmartDeviceLink 1.0 |
mainField2 | String | Text to be displayed on the second display line of a two-line display. | N | If this parameter is omitted, the text of mainField2 does not change. If this parameter is an empty string, the field will be cleared. If provided and the display is a single-line display, the parameter is ignored. Maxlength = 500 |
SmartDeviceLink 1.0 |
mainField3 | String | Text to be displayed on the first display line of the second page. | N | If this parameter is omitted, the text of mainField3 does not change. If this parameter is an empty string, the field will be cleared. If provided and the display is a single-line display, the parameter is ignored. Maxlength = 500 |
SmartDeviceLink 2.0 |
mainField4 | String | Text to be displayed on the second display line of the second page. | N | If this parameter is omitted, the text of mainField4 does not change. If this parameter is an empty string, the field will be cleared. If provided and the display is a single-line display, the parameter is ignored. Maxlength = 500 |
SmartDeviceLink 2.0 |
alignment | TextAlignment | Specifies how mainField1 and mainField2 text should be aligned on display. | N | Applies only to mainField1 and mainField2 provided on this call, not to what is already showing in display. If this parameter is omitted, text in both mainField1 and mainField2 will be centered. Has no effect with navigation display |
SmartDeviceLink 1.0 |
statusBar | String | The text is placed in the status bar area. | N | Note: The status bar only exists on navigation displays If this parameter is omitted, the status bar text will remain unchanged. If this parameter is an empty string, the field will be cleared. If provided and the display has no status bar, this parameter is ignored. Maxlength = 500 |
SmartDeviceLink 1.0 |
mediaClock | String | Text value for MediaClock field. Has to be properly formatted by Mobile App according to the module's capabilities. If this text is set, any automatic media clock updates previously set with SetMediaClockTimer will be stopped. | N | {"string_min_length": 0, "string_max_length": 500} | SmartDeviceLink 1.0.0
Deprecated in SmartDeviceLink 7.1.0 |
mediaTrack | String | Array of one or more TTSChunk elements specifying the help prompt used in an interaction started by PTT. | N | If parameter is omitted, the track field remains unchanged. If an empty string is provided, the field will be cleared. This field is only valid for media applications on navigation displays. Maxlength = 500 |
SmartDeviceLink 1.0 |
graphic | Image | Image to be shown on supported displays. | N | If omitted on supported displays, the displayed graphic shall not change. | SmartDeviceLink 2.0 |
secondaryGraphic | Image | Image struct determining whether static or dynamic secondary image to display in app. If omitted on supported displays, the displayed secondary graphic shall not change. |
N | SmartDeviceLink 2.3.2 | |
softButtons | List |
Soft buttons as defined by the App | N | If omitted on supported displays, the currently displayed SoftButton values will not change. Array Minsize: 0; Array Maxsize: 8 |
SmartDeviceLink 2.0 |
customPresets | String | Custom presets as defined by the App. | N | If omitted on supported displays, the presets will be shown as not defined. Minsize: 0; Maxsize: 6 |
SmartDeviceLink 2.0 |
templateTitle | String | The title of the new template that will be displayed. | N | How this will be displayed is dependent on the OEM design and implementation of the template.. Minsize: 0; Maxsize: 100 |
SmartDeviceLink 6.0.0 |
Response
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
REJECTED
DISALLOWED
UNSUPPORTED_RESOURCE
ABORTED
public static final java.lang.String KEY_GRAPHIC
public static final java.lang.String KEY_CUSTOM_PRESETS
public static final java.lang.String KEY_MAIN_FIELD_1
public static final java.lang.String KEY_MAIN_FIELD_2
public static final java.lang.String KEY_MAIN_FIELD_3
public static final java.lang.String KEY_MAIN_FIELD_4
public static final java.lang.String KEY_STATUS_BAR
public static final java.lang.String KEY_MEDIA_CLOCK
public static final java.lang.String KEY_ALIGNMENT
public static final java.lang.String KEY_MEDIA_TRACK
public static final java.lang.String KEY_SECONDARY_GRAPHIC
public static final java.lang.String KEY_SOFT_BUTTONS
public static final java.lang.String KEY_METADATA_TAGS
public static final java.lang.String KEY_WINDOW_ID
public static final java.lang.String KEY_TEMPLATE_CONFIGURATION
public static final java.lang.String KEY_TEMPLATE_TITLE
Constructs a new Show object
public Show()
Constructs a new Show object indicated by the Hashtable parameter
public Show(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Gets the text displayed in a single-line display, or in the upper display line in a two-line display
public java.lang.String getMainField1()
Sets the text displayed in a single-line display, or in the upper display line in a two-line display
public com.smartdevicelink.proxy.rpc.Show setMainField1(String mainField1)
Gets the text displayed on the second display line of a two-line display
public java.lang.String getMainField2()
Sets the text displayed on the second display line of a two-line display
public com.smartdevicelink.proxy.rpc.Show setMainField2(String mainField2)
Gets the text displayed on the first display line of the second page
public java.lang.String getMainField3()
Sets the text displayed on the first display line of the second page
public com.smartdevicelink.proxy.rpc.Show setMainField3(String mainField3)
Gets the text displayed on the second display line of the second page
public java.lang.String getMainField4()
Sets the text displayed on the second display line of the second page
public com.smartdevicelink.proxy.rpc.Show setMainField4(String mainField4)
Gets the alignment that Specifies how mainField1 and mainField2 text should be aligned on display
public com.smartdevicelink.proxy.rpc.enums.TextAlignment getAlignment()
Sets the alignment that Specifies how mainField1 and mainField2 text should be aligned on display
public com.smartdevicelink.proxy.rpc.Show setAlignment(TextAlignment alignment)
Gets text in the Status Bar
public java.lang.String getStatusBar()
Sets text in the Status Bar
public com.smartdevicelink.proxy.rpc.Show setStatusBar(String statusBar)
Deprecated
Gets the mediaClock.
public java.lang.String getMediaClock()
Deprecated
Sets the mediaClock.
public com.smartdevicelink.proxy.rpc.Show setMediaClock(String mediaClock)
Gets the text in the track field
public java.lang.String getMediaTrack()
Sets the text in the track field
public com.smartdevicelink.proxy.rpc.Show setMediaTrack(String mediaTrack)
Sets an image to be shown on supported displays
public com.smartdevicelink.proxy.rpc.Show setGraphic(Image graphic)
Gets an image to be shown on supported displays
public com.smartdevicelink.proxy.rpc.Image getGraphic()
public com.smartdevicelink.proxy.rpc.Show setSecondaryGraphic(Image secondaryGraphic)
public com.smartdevicelink.proxy.rpc.Image getSecondaryGraphic()
Gets the Soft buttons defined by the App
public java.util.List getSoftButtons()
Sets the Soft buttons defined by the App
public com.smartdevicelink.proxy.rpc.Show setSoftButtons(java.util.List<com.smartdevicelink.proxy.rpc.SoftButton> softButtons)
Gets the Custom Presets defined by the App
public java.util.List getCustomPresets()
Sets the Custom Presets defined by the App
public com.smartdevicelink.proxy.rpc.Show setCustomPresets(java.util.List<java.lang.String> customPresets)
Sets text field metadata defined by the App
public com.smartdevicelink.proxy.rpc.Show setMetadataTags(MetadataTags metadataTags)
Gets text field metadata defined by the App
public com.smartdevicelink.proxy.rpc.MetadataTags getMetadataTags()
Sets the windowID. It's a unique ID to identify the window. If this param is not included, it will be assumed that this request is specifically for the main window on the main display. See PredefinedWindows enum.
public com.smartdevicelink.proxy.rpc.Show setWindowID(Integer windowID)
Gets the windowID.
public java.lang.Integer getWindowID()
Gets the templateConfiguration.
public com.smartdevicelink.proxy.rpc.TemplateConfiguration getTemplateConfiguration()
Sets the templateConfiguration. It's used to set an alternate template layout to a window.
public com.smartdevicelink.proxy.rpc.Show setTemplateConfiguration(TemplateConfiguration templateConfiguration)
Sets the title of the new template that will be displayed. How this will be displayed is dependent on the OEM design and implementation of the template.
public com.smartdevicelink.proxy.rpc.Show setTemplateTitle(String templateTitle)
Gets the title of the new template that will be displayed How this will be displayed is dependent on the OEM design and implementation of the template.
public java.lang.String getTemplateTitle()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCRequest | getCorrelationID, setCorrelationID, setOnRPCResponseListener, getOnRPCResponseListener |
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |