canAddInput(_:)
Determines whether you can add an input to a session.
Declaration
func canAddInput(_ input: AVCaptureInput) -> BoolParameters
- input:
An input to add to the session.
Return Value
true if you can add the input to the session; otherwise, false.
Discussion
This method returns false if you can’t add an input to a capture session. This occurs, for example, if you attempt to add the input to a session twice, or if the input already belongs to another capture session.