| Constructor and Description |
|---|
SdlArtwork()
Creates a new instance of SdlArtwork
|
SdlArtwork(StaticIconName staticIconName)
Creates a new instance of SdlArtwork
|
SdlArtwork(String fileName,
FileType fileType,
byte[] data,
boolean persistentFile)
Creates a new instance of SdlArtwork
|
SdlArtwork(String fileName,
FileType fileType,
int id,
boolean persistentFile)
Creates a new instance of SdlArtwork
|
SdlArtwork(String fileName,
FileType fileType,
Uri uri,
boolean persistentFile)
Creates a new instance of SdlArtwork
|
| Modifier and Type | Method and Description |
|---|---|
SdlArtwork |
clone()
Creates a deep copy of the object
|
Image |
getImageRPC()
Gets the Image RPC representing this artwork.
|
boolean |
isTemplateImage()
Gets whether this SdlArtwork is a template image whose coloring should be decided by the HMI
|
void |
setTemplateImage(boolean isTemplate)
Sets whether this SdlArtwork is a template image whose coloring should be decided by the HMI
|
void |
setType(FileType fileType)
Sets the type of the file
|
equals, getFileData, getName, getOverwrite, getResourceId, getType, getUri, hashCode, isPersistent, isStaticIcon, setFileData, setName, setOverwrite, setPersistent, setResourceId, setStaticIcon, setUripublic SdlArtwork()
public SdlArtwork(String fileName, @NonNull FileType fileType, int id, boolean persistentFile)
fileName - a String value representing the name that will be used to store the file in the head unit. You can pass null if you want the library to auto generate the namefileType - a FileType enum value representing the type of the fileid - an int value representing the android resource id of the filepersistentFile - a boolean value that indicates if the file is meant to persist between sessions / ignition cyclespublic SdlArtwork(String fileName, @NonNull FileType fileType, Uri uri, boolean persistentFile)
fileName - a String value representing the name that will be used to store the file in the head unit. You can pass null if you want the library to auto generate the namefileType - a FileType enum value representing the type of the fileuri - a URI value representing a file's location. Currently, it only supports local filespersistentFile - a boolean value that indicates if the file is meant to persist between sessions / ignition cyclespublic SdlArtwork(String fileName, @NonNull FileType fileType, byte[] data, boolean persistentFile)
fileName - a String value representing the name that will be used to store the file in the head unit. You can pass null if you want the library to auto generate the namefileType - a FileType enum value representing the type of the filedata - a byte array representing the data of the filepersistentFile - a boolean value that indicates if the file is meant to persist between sessions / ignition cyclespublic SdlArtwork(@NonNull
StaticIconName staticIconName)
staticIconName - a StaticIconName enum value representing the name of a static file that comes pre-shipped with the head unitpublic void setTemplateImage(boolean isTemplate)
isTemplate - boolean that tells whether this SdlArtwork is a template imagepublic boolean isTemplateImage()
public void setType(@NonNull
FileType fileType)
SdlFilepublic Image getImageRPC()
public SdlArtwork clone()