public class Image extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| value | String | Either the static hex icon value or the binary image file name identifier (sent by PutFile).
|
SmartDeviceLink 2.0 |
| imageType | ImageType | Describes, whether it is a static or dynamic image. | SmartDeviceLink 2.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_IMAGE_TYPE |
static String |
KEY_IS_TEMPLATE |
static String |
KEY_VALUE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
Image()
Constructs a newly allocated Image object
|
Image(Hashtable<String,Object> hash)
Constructs a newly allocated Image object indicated by the Hashtable parameter
|
Image(String value,
ImageType imageType)
Constructs a newly allocated Image object
|
| Modifier and Type | Method and Description |
|---|---|
ImageType |
getImageType()
Get image type (static or dynamic image)
|
Boolean |
getIsTemplate()
Get whether this Image is a template image whose coloring should be decided by the HMI
|
String |
getValue()
Get either the static hex icon value or the binary image file name identifier (sent by PutFile)
|
Image |
setImageType(ImageType imageType)
Set the image type (static or dynamic image)
|
Image |
setIsTemplate(Boolean isTemplate)
Set whether this Image is a template image whose coloring should be decided by the HMI
|
Image |
setValue(String value)
Set either the static hex icon value or the binary image file name identifier (sent by PutFile)
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_VALUE
public static final String KEY_IMAGE_TYPE
public static final String KEY_IS_TEMPLATE
public Image()
public Image(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic Image setValue(@NonNull String value)
value - either the static hex icon value or the binary image file name identifier (sent by PutFile)public String getValue()
public Image setImageType(@NonNull ImageType imageType)
imageType - whether it is a static or dynamic imagepublic ImageType getImageType()
public Image setIsTemplate(Boolean isTemplate)
isTemplate - boolean that tells whether this Image is a template imagepublic Boolean getIsTemplate()