Sets the displayed image using a formatted data object.
- watchOS 2.0+
A data object containing the image data in its native format. Specifying
nilremoves the existing image, causing the watch interface to display nothing in the space previously occupied by the image.
This method changes the image being displayed. This method sends the specified image data from your WatchKit extension to the Watch app, which in watchOS 1 also involves sending the image wirelessly to the device. This method offers better performance when you already have data in the raw PNG or JPG format.
When setting images, always try to use images that are sized to fit the available space. Images are rendered according to the mode and size attributes you set for the image interface object.