Instance Method

startRunning

Tells the receiver to start running.

Declaration

- (void)startRunning;

Discussion

This method is used to start the flow of data from the inputs to the outputs connected to the AVCaptureSession instance that is the receiver. This method is synchronous and blocks until the receiver has either completely started running or failed to start running. If an error occurs during this process and the receiver fails to start running, you receive an AVCaptureSessionRuntimeErrorNotification.

See Also

Managing Running State

- stopRunning

Tells the receiver to stop running.

running

Indicates whether the receiver is running.

interrupted

Indicates whether the receiver has been interrupted.

AVCaptureSessionRuntimeErrorNotification

Posted if an error occurred during a capture session.

AVCaptureSessionDidStartRunningNotification

Posted when a capture session starts.

AVCaptureSessionDidStopRunningNotification

Posted when a capture session stops.

AVCaptureSessionWasInterruptedNotification

Posted if a capture session is interrupted.

AVCaptureSessionInterruptionEndedNotification

Posted if an interruption to a capture session finishes.

AVCaptureSessionErrorKey

Key to retrieve the error object from a AVCaptureSessionRuntimeErrorNotification user info dictionary.

AVCaptureSessionInterruptionReasonKey

Key to retrieve information about a capture interruption from a AVCaptureSessionWasInterruptedNotification user info dictionary.

AVCaptureSessionInterruptionSystemPressureStateKey

The key for retrieving information about system pressure factors that caused a capture session interruption.

AVCaptureSessionInterruptionReason

Constants identifying the reason a capture session was interrupted, found in an AVCaptureSessionWasInterruptedNotification user info dictionary.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software