Class

WKImage

A wrapper for images you use with a picker interface.

Declaration

@interface WKImage : NSObject

Overview

To create instances of this class, use one of the defined creation methods. Choose the method that best suits the image data you have. After creating the object, you can use associate it with a WKPickerItem object and use it in your picker interface.

Topics

Creating Image Objects

+ imageWithImage:

Creates and returns an image object using the specified UIKit image.

+ imageWithImageData:

Creates an image with the specified raw image data.

+ imageWithImageName:

Creates an image by loading an image file from the Watch app bundle.

Getting the Image Data

image

The UIKit image object

imageData

The data object containing the raw image data.

imageName

The name of the image to load from the Watch app’s bundle.

Relationships

Inherits From

See Also

Images and Movies

WKInterfaceImage

An image that can be displayed in the interface of your watchOS app.

WKImageAnimatable

A collection of methods you can use to control the playback of animated images.

WKInterfaceMovie

An interface element that lets you play video and audio content in your watchOS app.

WKInterfaceInlineMovie

An interface element that displays a video's poster image and supports inline playing of the video.

WKInterfaceHMCamera

An interface element that displays either a video stream or a single snapshot from an IP camera connected to HomeKit.

WKVideoGravity

Constants indicating the appearance of video content.