Contents

stopRecording(withOutput:completionHandler:)

Stops the current recording and writes the movie to the specified output URL.

Declaration

func stopRecording(withOutput url: URL, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func stopRecording(withOutput url: URL) async throws

Parameters

  • url:

    The output URL.

  • completionHandler:

    The completion handler the system calls when the movie is written to the specified output URL. If an error occured, the system passes the completion handler an Nserror that indicates the reason the operation failed.

Discussion

See Also

Controlling App Recording