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


@interface WKInterfaceHMCamera : WKInterfaceObject


Do not subclass or create instances of this class yourself. Instead, define an outlet in your interface controller class and connect it to the corresponding object in your storyboard file. For example, to refer to a camera interface object in your interface, define a property with the following syntax in your interface controller class:

@property (weak, nonatomic) IBOutlet WKInterfaceHMCamera* myCamera;

During the initialization of your interface controller, WatchKit creates the camera interface object and assigns it to its associated outlet. At that point, you can use the camera interface object to change to the onscreen content.

The camera interface object in your Watch app must be connected to a WKInterfaceHMCamera outlet in your WatchKit extension for the camera to be visible in your watchOS app's user interface.


Setting the Camera Source

- setCameraSource:

Set the HomeKit camera source displayed by this interface object.

Initializing for SwiftUI

- init

Creates a camera for use in SwiftUI.


Inherits From

See Also

Images and Movies


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


A wrapper for images you use with a picker interface.


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


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


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


Constants indicating the appearance of video content.