public class DisplayCapabilities extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| @property-deprecated |
SmartDeviceLink 1.0 | ||
| displayName | String | The name of the display | SmartDeviceLink 5.0 |
| textField | TextField[] | An array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as Show, SetMediaClockTimer, etc. This array of TextField structures identify all the text fields to which the application can write on the current display (identified by DisplayType ). | SmartDeviceLink 1.0 |
| mediaClockFormats | MediaClockFormat[] | An array of MediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field | SmartDeviceLink 1.0 |
| graphicSupported | Boolean | The display's persistent screen supports referencing a static or dynamic image. | SmartDeviceLink 2.0 |
DisplayType,
MediaClockFormat,
TextField,
ImageField| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DISPLAY_NAME |
static String |
KEY_DISPLAY_TYPE
Deprecated.
|
static String |
KEY_GRAPHIC_SUPPORTED |
static String |
KEY_IMAGE_FIELDS |
static String |
KEY_MEDIA_CLOCK_FORMATS |
static String |
KEY_NUM_CUSTOM_PRESETS_AVAILABLE |
static String |
KEY_SCREEN_PARAMS |
static String |
KEY_TEMPLATES_AVAILABLE |
static String |
KEY_TEXT_FIELDS |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
DisplayCapabilities()
Constructs a newly allocated DisplayCapabilities object
|
DisplayCapabilities(DisplayType displayType,
List<TextField> textFields,
List<MediaClockFormat> mediaClockFormats,
Boolean graphicSupported)
Deprecated.
|
DisplayCapabilities(Hashtable<String,Object> hash)
Constructs a newly allocated DisplayCapabilities object indicated by the Hashtable parameter
|
DisplayCapabilities(String displayName,
List<TextField> textFields,
List<MediaClockFormat> mediaClockFormats,
Boolean graphicSupported)
Constructs a newly allocated DisplayCapabilities object
|
| Modifier and Type | Method and Description |
|---|---|
void |
format(Version rpcVersion,
boolean formatParams)
This method should clean the the RPC to make sure it is compliant with the spec.
|
String |
getDisplayName()
Get the name of the display
|
DisplayType |
getDisplayType()
Deprecated.
|
Boolean |
getGraphicSupported()
Get the display's persistent screen supports.
|
List<ImageField> |
getImageFields() |
List<MediaClockFormat> |
getMediaClockFormats()
Get an array of MediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field
|
Integer |
getNumCustomPresetsAvailable() |
ScreenParams |
getScreenParams() |
List<String> |
getTemplatesAvailable() |
List<TextField> |
getTextFields()
Get an array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as Show, SetMediaClockTimer, etc.
|
DisplayCapabilities |
setDisplayName(String displayName)
Set the name of the display
|
DisplayCapabilities |
setDisplayType(DisplayType displayType)
Deprecated.
|
DisplayCapabilities |
setGraphicSupported(Boolean graphicSupported)
set the display's persistent screen supports.
|
DisplayCapabilities |
setImageFields(List<ImageField> imageFields) |
DisplayCapabilities |
setMediaClockFormats(List<MediaClockFormat> mediaClockFormats)
Set an array of MediaClockFormat elements, defining the valid string formats used in specifying the contents of the media clock field
|
DisplayCapabilities |
setNumCustomPresetsAvailable(Integer numCustomPresetsAvailable) |
DisplayCapabilities |
setScreenParams(ScreenParams screenParams) |
DisplayCapabilities |
setTemplatesAvailable(List<String> templatesAvailable) |
DisplayCapabilities |
setTextFields(List<TextField> textFields)
Set an array of TextField structures, each of which describes a field in the HMI which the application can write to using operations such as Show, SetMediaClockTimer, etc.
|
clone, deserializeJSON, equals, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValue@Deprecated public static final String KEY_DISPLAY_TYPE
public static final String KEY_DISPLAY_NAME
public static final String KEY_MEDIA_CLOCK_FORMATS
public static final String KEY_TEXT_FIELDS
public static final String KEY_IMAGE_FIELDS
public static final String KEY_GRAPHIC_SUPPORTED
public static final String KEY_SCREEN_PARAMS
public static final String KEY_TEMPLATES_AVAILABLE
public static final String KEY_NUM_CUSTOM_PRESETS_AVAILABLE
public DisplayCapabilities()
public DisplayCapabilities(Hashtable<String,Object> hash)
hash - The Hashtable to use@Deprecated public DisplayCapabilities(@NonNull DisplayType displayType, @NonNull List<TextField> textFields, @NonNull List<MediaClockFormat> mediaClockFormats, @NonNull Boolean graphicSupported)
displayType - the display typetextFields - the List of textFieldsmediaClockFormats - the List of MediaClockFormatgraphicSupported - true if the display supports graphics, false if it does notpublic DisplayCapabilities(String displayName, @NonNull List<TextField> textFields, @NonNull List<MediaClockFormat> mediaClockFormats, @NonNull Boolean graphicSupported)
displayName - the display name (String)textFields - the List of textFieldsmediaClockFormats - the List of MediaClockFormatgraphicSupported - true if the display supports graphics, false if it does notpublic void format(Version rpcVersion, boolean formatParams)
RPCStruct@Deprecated public DisplayType getDisplayType()
@Deprecated public DisplayCapabilities setDisplayType(@NonNull DisplayType displayType)
displayType - the display typepublic String getDisplayName()
public DisplayCapabilities setDisplayName(String displayName)
displayName - the name of the displaypublic List<TextField> getTextFields()
public DisplayCapabilities setTextFields(@NonNull List<TextField> textFields)
textFields - the List of textFieldspublic List<ImageField> getImageFields()
public DisplayCapabilities setImageFields(List<ImageField> imageFields)
public Integer getNumCustomPresetsAvailable()
public DisplayCapabilities setNumCustomPresetsAvailable(Integer numCustomPresetsAvailable)
public List<MediaClockFormat> getMediaClockFormats()
public DisplayCapabilities setMediaClockFormats(@NonNull List<MediaClockFormat> mediaClockFormats)
mediaClockFormats - the List of MediaClockFormatpublic DisplayCapabilities setGraphicSupported(@NonNull Boolean graphicSupported)
graphicSupported - true if the display supports graphics, false if it does notpublic Boolean getGraphicSupported()
public DisplayCapabilities setTemplatesAvailable(List<String> templatesAvailable)
public DisplayCapabilities setScreenParams(ScreenParams screenParams)
public ScreenParams getScreenParams()