---
title: WKInterfaceHMCamera
framework: watchkit
role: symbol
role_heading: Class
path: watchkit/wkinterfacehmcamera
---

# WKInterfaceHMCamera

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

## Declaration

```swift
class WKInterfaceHMCamera
```

## Overview

Overview 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: 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.

## Topics

### Setting the Camera Source

- [setCameraSource(_:)](watchkit/wkinterfacehmcamera/setcamerasource(_:).md)

### Initializing for SwiftUI

- [init()](watchkit/wkinterfacehmcamera/init().md)

## Relationships

### Inherits From

- [WKInterfaceObject](watchkit/wkinterfaceobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Images and movies

- [WKInterfaceImage](watchkit/wkinterfaceimage.md)
- [WKImage](watchkit/wkimage.md)
- [WKImageAnimatable](watchkit/wkimageanimatable.md)
- [WKInterfaceMovie](watchkit/wkinterfacemovie.md)
- [WKInterfaceInlineMovie](watchkit/wkinterfaceinlinemovie.md)
- [WKVideoGravity](watchkit/wkvideogravity.md)
