---
title: startMonitoring()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturesmartframingmonitor/startmonitoring()
---

# startMonitoring()

Begins monitoring the device’s active scene and making framing recommendations.

## Declaration

```swift
func startMonitoring() throws
```

## Mentioned in

Adopting smart framing in your camera app

## Discussion

Discussion The monitor’s recommendedFraming is nil when it is not actively running. Call this method to start monitoring. You may start monitoring before or after calling startRunning(),  and you may stop active monitoring without stopping the capture session by calling stopMonitoring() at any time, but you must set enabledFramings before running your capture session so that the monitor is prepared for your desired framing recommendations. While the monitor is running, you may set enabledFramings at any time to change the framing choices the monitor should consider in its recommendations.

## See Also

### Managing the life cycle

- [isMonitoring](avfoundation/avcapturesmartframingmonitor/ismonitoring.md)
- [stopMonitoring()](avfoundation/avcapturesmartframingmonitor/stopmonitoring().md)
