Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
SdlArtwork

SdlArtwork Class Reference

Constructors

Instance Methods

Constructors

new SdlArtwork(fileName, fileType, data, persistentFile)

Initializes an instance of SdlArtwork

Instance Methods

sdlArtwork.clone() ⇒ ChoiceCell

Creates a deep copy of the object

Kind: Instance method of SdlArtwork
Returns: ChoiceCell - A deep copy of the object

sdlArtwork.getImageRPC() ⇒ Image

Gets the Image RPC representing this artwork. Generally for use internally, you should instead pass an artwork to a Screen Manager method

Kind: Instance method of SdlArtwork
Returns: Image - The Image RPC representing this artwork.

sdlArtwork.isTemplateImage() ⇒ Boolean

Gets whether this SdlArtwork is a template image whose coloring should be decided by the HMI

Kind: Instance method of SdlArtwork
Returns: Boolean - tells whether this SdlArtwork is a template image

sdlArtwork.setTemplateImage(isTemplate) ⇒ SdlArtwork

Sets whether this SdlArtwork is a template image whose coloring should be decided by the HMI

Kind: Instance method of SdlArtwork
Returns: SdlArtwork - A reference to this instance to support method chaining.

ParamTypeDescription
isTemplate Boolean boolean that tells whether this SdlArtwork is a template image

sdlArtwork.setType(fileType) ⇒ SdlArtwork

Sets the file type of the artwork.

Kind: Instance method of SdlArtwork
Returns: SdlArtwork - A reference to this instance to support method chaining.

ParamTypeDescription
fileType FileType A FileType enum value.
View on GitHub.com
Previous Section Next Section