Instance Method

addCachedImage(with:name:)

Caches the image data using the provided name.

Declaration

func addCachedImage(with imageData: Data, name: String) -> Bool

Discussion

Each cached image must have a unique name. Adding a second image with the same name replaces the existing image with the new image.

See Also

watchOS 1 Properties and Methods

var cachedImages: [String : NSNumber]

A dictionary containing the name and size (in bytes) of the cached images.

func addCachedImage(UIImage, name: String)

Caches the image using the provided name.

func removeAllCachedImages()

Removes all the cached images from the cachedImages dictionary.

func removeCachedImage(withName: String)

Removes the cached image with the specified name.