Contents

screenRecorder(_:didStopRecordingWith:error:)

Indicates that the screen recording has stopped.

Declaration

optional func screenRecorder(_ screenRecorder: RPScreenRecorder, didStopRecordingWith previewViewController: RPPreviewViewController?, error: (any Error)?)

Parameters

  • screenRecorder:

    The Rpscreenrecorder instance.

  • previewViewController:

    An Rppreviewviewcontroller interface object that is returned if anything at all was recorded. The interface allows the user to preview and edit the recording.

  • error:

    An Nserror describing why the recording stopped. This method is nil when no error occurs.

Discussion

This method is called when recording stops due to an error or a change in recording availability. If any part of the stopped recording is available, an instance of RPPreviewViewController is returned.

See Also

Responding to Recording Changes