An interface element that displays either a video stream or a single snapshot from an IP camera connected to HomeKit.
SDK
- watchOS 3.0+
Framework
- Watch
Kit
Declaration
class WKInterfaceHMCamera : WKInterface Object
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:
@IBOutlet weak var myCamera: WKInterfaceHMCamera!
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 WKInterface
outlet in your WatchKit extension for the camera to be visible in your watchOS app's user interface.