exportClip(to:duration:completionHandler:)
Exports a clip recording to a file.
Declaration
func exportClip(to url: URL, duration: TimeInterval, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func exportClip(to url: URL, duration: TimeInterval) async throwsParameters
- url:
The URL of the destination file.
- duration:
The duration for clip recording, in seconds. The system caps the duration at to the elapsed time, or a maximum of 15 seconds, whichever is shorter.
- completionHandler:
A closure the system calls after it finishes exporting the clip. The system passes an error object to the closure if it encountered a problem writing the clip to disk.