---
title: HMCameraSource
framework: homekit
role: symbol
role_heading: Class
path: homekit/hmcamerasource
---

# HMCameraSource

An abstract class for a camera’s data source.

## Declaration

```swift
class HMCameraSource
```

## Topics

### Getting the properties

- [aspectRatio](homekit/hmcamerasource/aspectratio.md)

### Initializers

- [init()](homekit/hmcamerasource/init().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [HMCameraSnapshot](homekit/hmcamerasnapshot.md)
- [HMCameraStream](homekit/hmcamerastream.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)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a camera view

- [init(source:)](homekit/cameraview/init(source:).md)
