Instance Method


Captures a still image using the camera.


func takePicture()


Use this method in conjunction with a custom overlay view to initiate the programmatic capture of a still image. This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls.

Calling this method while an image is being captured has no effect. You must wait until the associated delegate object receives an imagePickerController(_:didFinishPickingMediaWithInfo:) message before you can capture another picture.

Calling this method when the source type of the image picker is set to a value other than results in the throwing of an invalidArgumentException exception.

See Also

Capturing Still Images or Movies

func startVideoCapture() -> Bool

Starts video capture using the camera specified by the UIImagePickerController.CameraDevice property.

func stopVideoCapture()

Stops video capture.